Permalink
Browse files

Fix Add/Remove column in migrations

  • Loading branch information...
1 parent a0bd150 commit 0a67c0e88f22ea2c67f5472d1b246552d791df54 @tadast committed Jan 7, 2013
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[add_column :${1:table}, :${2:column}, :${3:string}, ${4:limit}: ${5:255}]]></content>
+ <tabTrigger>mcol</tabTrigger>
+ <scope>meta.rails.migration - meta.rails.migration.create_table - meta.rails.migration.change_table</scope>
+ <description>Add Column</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[remove_column :${1:table}, :${2:column}]]></content>
+ <tabTrigger>mcol</tabTrigger>
+ <scope>meta.rails.migration - meta.rails.migration.create_table - meta.rails.migration.change_table</scope>
+ <description>Remove Column</description>
+</snippet>
@@ -1,6 +0,0 @@
-<snippet>
- <content><![CDATA[remove_column :${1:table}, :${2:column}${3: [press tab twice to generate add_column]}]]></content>
- <tabTrigger>mcol</tabTrigger>
- <scope>meta.rails.migration - meta.rails.migration.create_table - meta.rails.migration.change_table</scope>
- <description>Remove / Add Column</description>
-</snippet>

0 comments on commit 0a67c0e

Please sign in to comment.