Skip to content

Commit a0bd150

Browse files
committed
mtab does both create and drop table. Fixes #2
1 parent 156a51e commit a0bd150

2 files changed

+13
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<snippet>
2+
<content><![CDATA[create_table :${1:table} do |t|
3+
t.${2:string} :${3:name}
4+
5+
t.timestamps
6+
end
7+
]]></content>
8+
<tabTrigger>mtab</tabTrigger>
9+
<scope>meta.rails.migration - meta.rails.migration.create_table - meta.rails.migration.change_table</scope>
10+
<description>Create Table</description>
11+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<snippet>
2-
<content><![CDATA[drop_table :${1:table}${2: [press tab twice to generate create_table]}]]></content>
2+
<content><![CDATA[drop_table :${1:table}]]></content>
33
<tabTrigger>mtab</tabTrigger>
44
<scope>meta.rails.migration - meta.rails.migration.create_table - meta.rails.migration.change_table</scope>
5-
<description>Drop / Create Table</description>
5+
<description>Drop Table</description>
66
</snippet>

0 commit comments

Comments
 (0)