From 3e1f0fe109becc1fe7d05209e7a38215492cc17d Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Wed, 30 Jun 2021 10:28:55 +0200 Subject: [PATCH] Migration code style fix [SCI-5828] --- db/migrate/20210622101238_fix_experiment_indices.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/db/migrate/20210622101238_fix_experiment_indices.rb b/db/migrate/20210622101238_fix_experiment_indices.rb index a633ccafd..634cac14a 100644 --- a/db/migrate/20210622101238_fix_experiment_indices.rb +++ b/db/migrate/20210622101238_fix_experiment_indices.rb @@ -1,8 +1,10 @@ # frozen_string_literal: true + require File.expand_path('app/helpers/database_helper') -include DatabaseHelper class FixExperimentIndices < ActiveRecord::Migration[6.1] + include DatabaseHelper + def up remove_index :experiments, name: 'index_experiments_on_name', column: 'name'