mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 17:51:13 +08:00
Fix migration rollback [SCI-5828]
This commit is contained in:
parent
3e1f0fe109
commit
524ea05873
1 changed files with 3 additions and 3 deletions
|
@ -17,9 +17,9 @@ class FixExperimentIndices < ActiveRecord::Migration[6.1]
|
|||
end
|
||||
|
||||
def down
|
||||
remove_index :experiments, name: 'index_experiments_on_code'
|
||||
remove_index :experiments, name: 'index_experiments_on_description', column: 'description'
|
||||
remove_index :experiments, name: 'index_experiments_on_name', column: 'name'
|
||||
remove_index :experiments, name: 'index_experiments_on_experiment_code'
|
||||
remove_index :experiments, name: 'index_experiments_on_description'
|
||||
remove_index :experiments, name: 'index_experiments_on_name'
|
||||
|
||||
add_index :experiments, :name
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue