lib/generators/declare_schema/migration/migrator.rb
# TODO: TECH-5338: optimize that index doesn't need to be dropped on undo since entire table will be dropped
TECH-5338: optimize that index doesn't need to be dropped on undo since entire table will be dropped
TECH - 5338 : optimize that index doesn ' t need to be dropped on undo since entire table will be dropped
def create_indexes(model)
          model.index_definitions.map do |i|
            ::DeclareSchema::SchemaChange::IndexAdd.new(model.table_name, i.columns, unique: i.unique, where: i.where, name: i.name)
          end
        end
def create_indexes ( model ) model . index_definitions . map do | i | :: DeclareSchema :: SchemaChange :: IndexAdd . new ( model . table_name , i . columns , unique : i . unique , where : i . where , name : i . name ) end end
TODO: TECH-5338: optimize that index doesn't need to be dropped on undo since entire table will be dropped
TODO : TECH - 5338 : optimize that index doesn ' t need to be dropped on undo since entire table will be dropped
model
<not_specific>