PageRenderTime 49ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

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

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