diff options
Diffstat (limited to 'db/post_migrate/20200117194850_backfill_operations_feature_flags_iid.rb')
-rw-r--r-- | db/post_migrate/20200117194850_backfill_operations_feature_flags_iid.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/db/post_migrate/20200117194850_backfill_operations_feature_flags_iid.rb b/db/post_migrate/20200117194850_backfill_operations_feature_flags_iid.rb deleted file mode 100644 index bc97bd6062d..00000000000 --- a/db/post_migrate/20200117194850_backfill_operations_feature_flags_iid.rb +++ /dev/null @@ -1,24 +0,0 @@ -# frozen_string_literal: true - -class BackfillOperationsFeatureFlagsIid < ActiveRecord::Migration[5.2] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - ### - # This should update about 700 rows on gitlab.com - # Execution time is predicted to take less than a second based on #database-lab results - # https://gitlab.com/gitlab-org/gitlab/merge_requests/22175#migration-performance - ### - def up - execute('LOCK operations_feature_flags IN ACCESS EXCLUSIVE MODE') - - backfill_iids('operations_feature_flags') - - change_column_null :operations_feature_flags, :iid, false - end - - def down - change_column_null :operations_feature_flags, :iid, true - end -end |