Method: Lhm::Migrator#add_unique_index
- Defined in:
- lib/lhm/migrator.rb
#add_unique_index(columns, index_name = nil) ⇒ Object
Add a unique index to a table
141 142 143 |
# File 'lib/lhm/migrator.rb', line 141 def add_unique_index(columns, index_name = nil) ddl(index_ddl(columns, true, index_name)) end |