a little bit more work done

This commit is contained in:
capitaomorte
2009-11-19 17:09:01 +00:00
parent 3108399930
commit 295972897f
26 changed files with 95 additions and 25 deletions

View File

@@ -2,7 +2,7 @@
# key: tcbi
# contributor: Translated from TextMate Snippet
# name: Table column binary
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
# condition: (and (yas/rails-migration-p) (or (yas/rails-in-create-table-p) (yas/rails-in-change-table-p)))
# --
t.binary :${1:title}${2:, :limit => ${3:2}.megabytes}
$0

View File

@@ -2,7 +2,7 @@
# key: tcb
# contributor: Translated from TextMate Snippet
# name: Table column boolean
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
# condition: (and (yas/rails-migration-p) (or (yas/rails-in-create-table-p) (yas/rails-in-change-table-p)))
# --
t.boolean :${1:title}
$0

View File

@@ -2,7 +2,7 @@
# key: tcda
# contributor: Translated from TextMate Snippet
# name: Table column date
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
# condition: (and (yas/rails-migration-p) (or (yas/rails-in-create-table-p) (yas/rails-in-change-table-p)))
# --
t.date :${1:title}
$0

View File

@@ -2,7 +2,7 @@
# key: tcdt
# contributor: Translated from TextMate Snippet
# name: Table column datetime
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
# condition: (and (yas/rails-migration-p) (or (yas/rails-in-create-table-p) (yas/rails-in-change-table-p)))
# --
t.datetime :${1:title}
$0

View File

@@ -2,7 +2,7 @@
# key: tcd
# contributor: Translated from TextMate Snippet
# name: Table column decimal
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
# condition: (and (yas/rails-migration-p) (or (yas/rails-in-create-table-p) (yas/rails-in-change-table-p)))
# --
t.decimal :${1:title}${2:${3:, :precision => ${4:10}}${5:, :scale => ${6:2}}}
$0

View File

@@ -2,7 +2,7 @@
# key: tcf
# contributor: Translated from TextMate Snippet
# name: Table column float
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
# condition: (and (yas/rails-migration-p) (or (yas/rails-in-create-table-p) (yas/rails-in-change-table-p)))
# --
t.float :${1:title}
$0

View File

@@ -2,7 +2,7 @@
# key: tci
# contributor: Translated from TextMate Snippet
# name: Table column integer
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
# condition: (and (yas/rails-migration-p) (or (yas/rails-in-create-table-p) (yas/rails-in-change-table-p)))
# --
t.integer :${1:title}
$0

View File

@@ -2,7 +2,7 @@
# key: tcl
# contributor: Translated from TextMate Snippet
# name: Table column lock_version
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
# condition: (and (yas/rails-migration-p) (or (yas/rails-in-create-table-p) (yas/rails-in-change-table-p)))
# --
t.integer :lock_version, :null => false, :default => 0
$0

View File

@@ -2,7 +2,7 @@
# key: tcr
# contributor: Translated from TextMate Snippet
# name: Table column(s) references
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
# condition: (and (yas/rails-migration-p) (or (yas/rails-in-create-table-p) (yas/rails-in-change-table-p)))
# --
t.references :${1:taggable}${2:, :polymorphic => ${3:{ :default => '${4:Photo}' \}}}
$0

View File

@@ -2,7 +2,7 @@
# key: tcs
# contributor: Translated from TextMate Snippet
# name: Table column string
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
# condition: (and (yas/rails-migration-p) (or (yas/rails-in-create-table-p) (yas/rails-in-change-table-p)))
# --
t.string :${1:title}
$0

View File

@@ -2,7 +2,7 @@
# key: tct
# contributor: Translated from TextMate Snippet
# name: Table column text
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
# condition: (and (yas/rails-migration-p) (or (yas/rails-in-create-table-p) (yas/rails-in-change-table-p)))
# --
t.text :${1:title}
$0

View File

@@ -2,7 +2,7 @@
# key: tcti
# contributor: Translated from TextMate Snippet
# name: Table column time
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
# condition: (and (yas/rails-migration-p) (or (yas/rails-in-create-table-p) (yas/rails-in-change-table-p)))
# --
t.time :${1:title}
$0

View File

@@ -2,7 +2,7 @@
# key: tcts
# contributor: Translated from TextMate Snippet
# name: Table column timestamp
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
# condition: (and (yas/rails-migration-p) (or (yas/rails-in-create-table-p) (yas/rails-in-change-table-p)))
# --
t.timestamp :${1:title}
$0

View File

@@ -2,7 +2,7 @@
# key: tctss
# contributor: Translated from TextMate Snippet
# name: Table column timestamps
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
# condition: (and (yas/rails-migration-p) (or (yas/rails-in-create-table-p) (yas/rails-in-change-table-p)))
# --
t.timestamps
$0