From 2ed243e2f798877ad651c5b6c9d9ac49cb6d0ca3 Mon Sep 17 00:00:00 2001 From: George Lee Date: Wed, 19 Jun 2013 11:27:01 +0800 Subject: [PATCH] add in migration index / simple_form input --- snippets/eruby.snippets | 2 ++ snippets/ruby.snippets | 2 ++ 2 files changed, 4 insertions(+) diff --git a/snippets/eruby.snippets b/snippets/eruby.snippets index 721116c..d99cf0b 100644 --- a/snippets/eruby.snippets +++ b/snippets/eruby.snippets @@ -53,6 +53,8 @@ snippet ff <%= form_for @${1:model} do |f| %> ${2} <% end %> +snippet ffi + <%= ${1:f}.input :${2:attribute} %> snippet ffcb <%= ${1:f}.check_box :${2:attribute} %> snippet ffe diff --git a/snippets/ruby.snippets b/snippets/ruby.snippets index 027edf4..417a4f4 100644 --- a/snippets/ruby.snippets +++ b/snippets/ruby.snippets @@ -888,6 +888,8 @@ snippet test #migrations snippet mac add_column :${1:table_name}, :${2:column_name}, :${3:data_type} +snippet mai + add_index :${1:table_name}, :${2:column_name} snippet mrc remove_column :${1:table_name}, :${2:column_name} snippet mrnc