Permalink
Browse files

mtab does both create and drop table. Fixes #2

  • Loading branch information...
1 parent 156a51e commit a0bd15098e3d75734401bac2bf2450e023e119b7 @tadast committed Jan 6, 2013
@@ -0,0 +1,11 @@
+<snippet>
+ <content><![CDATA[create_table :${1:table} do |t|
+ t.${2:string} :${3:name}
+
+ t.timestamps
+end
+]]></content>
+ <tabTrigger>mtab</tabTrigger>
+ <scope>meta.rails.migration - meta.rails.migration.create_table - meta.rails.migration.change_table</scope>
+ <description>Create Table</description>
+</snippet>
@@ -1,6 +1,6 @@
<snippet>
- <content><![CDATA[drop_table :${1:table}${2: [press tab twice to generate create_table]}]]></content>
+ <content><![CDATA[drop_table :${1:table}]]></content>
<tabTrigger>mtab</tabTrigger>
<scope>meta.rails.migration - meta.rails.migration.create_table - meta.rails.migration.change_table</scope>
- <description>Drop / Create Table</description>
+ <description>Drop Table</description>
</snippet>

0 comments on commit a0bd150

Please sign in to comment.