PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/ruby-mode/Ruby on Rails/Migration/migration.ai

http://github.com/ridgetang/snippets
Unknown | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | abd1c4fb62eacfe772aead320f82df75 MD5 | raw file
1#name : add_index
2#key : ai
3#group : rails.migration
4#condition : (rails/migration?)
5# --
6add_index :${1:`(or (rails/cur-res-title) "table")`}, [:${2:column}]