mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-14 01:14:17 +00:00
Working on the rails snippets and conditions
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# key: mcol
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Create Column in Table
|
||||
## condition: "meta.rails.migration.create_table"
|
||||
# condition: (yas/rails-intelligent-migration-snippet-condition-p)
|
||||
# --
|
||||
t.column ${1:title}, :${2:string}
|
||||
$0
|
||||
@@ -2,6 +2,6 @@
|
||||
# key: mtab
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Drop / Create Table
|
||||
## condition: "meta.rails.migration - meta.rails.migration.create_table - meta.rails.migration.change_table"
|
||||
# condition: (yas/rails-intelligent-migration-snippet-condition-p)
|
||||
# --
|
||||
drop_table :${1:table}${2: [press tab twice to generate create_table]}
|
||||
Reference in New Issue
Block a user