From 524ea05873ea2f78b1215821c596ad07a6d2a27d Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Wed, 30 Jun 2021 10:37:11 +0200 Subject: [PATCH] Fix migration rollback [SCI-5828] --- db/migrate/20210622101238_fix_experiment_indices.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/migrate/20210622101238_fix_experiment_indices.rb b/db/migrate/20210622101238_fix_experiment_indices.rb index 634cac14a..e33d7cd6b 100644 --- a/db/migrate/20210622101238_fix_experiment_indices.rb +++ b/db/migrate/20210622101238_fix_experiment_indices.rb @@ -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