From 339128057027bb7595beb9971d4e335b92df1fa8 Mon Sep 17 00:00:00 2001 From: Iuri Fernandes Date: Sun, 28 Apr 2013 15:47:48 -0300 Subject: [PATCH] Refactor snippet to create new collumn in a migration(mccc -> mnc) --- snippets/ruby.snippets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/ruby.snippets b/snippets/ruby.snippets index a9b45ad..802b6ed 100644 --- a/snippets/ruby.snippets +++ b/snippets/ruby.snippets @@ -890,8 +890,8 @@ snippet mrnc rename_column :${1:table_name}, :${2:old_column_name}, :${3:new_column_name} snippet mcc change_column :${1:table}, :${2:column}, :${3:type} -snippet mccc - t.column :${1:title}, :${2:string} +snippet mnc + t.${1:string} :${2:title}${3:, null: false}${4} snippet mct create_table :${1:table_name} do |t| t.column :${2:name}, :${3:type}