Refactor snippet to create new collumn in a migration(mccc -> mnc)

This commit is contained in:
Iuri Fernandes 2013-04-28 15:47:48 -03:00
parent c6c743b3a0
commit 3391280570

View File

@ -890,8 +890,8 @@ snippet mrnc
rename_column :${1:table_name}, :${2:old_column_name}, :${3:new_column_name} rename_column :${1:table_name}, :${2:old_column_name}, :${3:new_column_name}
snippet mcc snippet mcc
change_column :${1:table}, :${2:column}, :${3:type} change_column :${1:table}, :${2:column}, :${3:type}
snippet mccc snippet mnc
t.column :${1:title}, :${2:string} t.${1:string} :${2:title}${3:, null: false}${4}
snippet mct snippet mct
create_table :${1:table_name} do |t| create_table :${1:table_name} do |t|
t.column :${2:name}, :${3:type} t.column :${2:name}, :${3:type}