Fix migration rollback [SCI-5828]

This commit is contained in:
Martin Artnik 2021-06-30 10:37:11 +02:00
parent 3e1f0fe109
commit 524ea05873

View file

@ -17,9 +17,9 @@ class FixExperimentIndices < ActiveRecord::Migration[6.1]
end end
def down def down
remove_index :experiments, name: 'index_experiments_on_code' remove_index :experiments, name: 'index_experiments_on_experiment_code'
remove_index :experiments, name: 'index_experiments_on_description', column: 'description' remove_index :experiments, name: 'index_experiments_on_description'
remove_index :experiments, name: 'index_experiments_on_name', column: 'name' remove_index :experiments, name: 'index_experiments_on_name'
add_index :experiments, :name add_index :experiments, :name
end end