diff options
Diffstat (limited to 'db/post_migrate/20210527131039_clean_up_rename_experiment_subjects_group_id_to_namespace_id.rb')
-rw-r--r-- | db/post_migrate/20210527131039_clean_up_rename_experiment_subjects_group_id_to_namespace_id.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/post_migrate/20210527131039_clean_up_rename_experiment_subjects_group_id_to_namespace_id.rb b/db/post_migrate/20210527131039_clean_up_rename_experiment_subjects_group_id_to_namespace_id.rb new file mode 100644 index 00000000000..6dec99c8acd --- /dev/null +++ b/db/post_migrate/20210527131039_clean_up_rename_experiment_subjects_group_id_to_namespace_id.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +class CleanUpRenameExperimentSubjectsGroupIdToNamespaceId < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers::V2 + + disable_ddl_transaction! + + def up + cleanup_concurrent_column_rename :experiment_subjects, :group_id, :namespace_id + end + + def down + undo_cleanup_concurrent_column_rename :experiment_subjects, :group_id, :namespace_id + end +end |