Module: ChronoModel::Migrate
Instance Method Summary collapse
Instance Method Details
#upgrade_indexes!(base = ActiveRecord::Base) ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/chrono_model/utils.rb', line 72 def upgrade_indexes!(base = ActiveRecord::Base) use base db.on_schema(Adapter::HISTORY_SCHEMA) do db.tables.each do |table| if db.is_chrono?(table) upgrade_indexes_for(table) end end end end |