Merge pull request #224 from mclee/migration
add in migration index / simple_form input
This commit is contained in:
commit
a9f4cb2840
@ -53,6 +53,8 @@ snippet ff
|
|||||||
<%= form_for @${1:model} do |f| %>
|
<%= form_for @${1:model} do |f| %>
|
||||||
${2}
|
${2}
|
||||||
<% end %>
|
<% end %>
|
||||||
|
snippet ffi
|
||||||
|
<%= ${1:f}.input :${2:attribute} %>
|
||||||
snippet ffcb
|
snippet ffcb
|
||||||
<%= ${1:f}.check_box :${2:attribute} %>
|
<%= ${1:f}.check_box :${2:attribute} %>
|
||||||
snippet ffe
|
snippet ffe
|
||||||
|
@ -888,6 +888,8 @@ snippet test
|
|||||||
#migrations
|
#migrations
|
||||||
snippet mac
|
snippet mac
|
||||||
add_column :${1:table_name}, :${2:column_name}, :${3:data_type}
|
add_column :${1:table_name}, :${2:column_name}, :${3:data_type}
|
||||||
|
snippet mai
|
||||||
|
add_index :${1:table_name}, :${2:column_name}
|
||||||
snippet mrc
|
snippet mrc
|
||||||
remove_column :${1:table_name}, :${2:column_name}
|
remove_column :${1:table_name}, :${2:column_name}
|
||||||
snippet mrnc
|
snippet mrnc
|
||||||
|
Loading…
Reference in New Issue
Block a user