summaryrefslogtreecommitdiff
path: root/db/post_migrate/20200429002150_cleanup_sprints_state_rename.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20200429002150_cleanup_sprints_state_rename.rb')
-rw-r--r--db/post_migrate/20200429002150_cleanup_sprints_state_rename.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/post_migrate/20200429002150_cleanup_sprints_state_rename.rb b/db/post_migrate/20200429002150_cleanup_sprints_state_rename.rb
new file mode 100644
index 00000000000..7f67a55a19d
--- /dev/null
+++ b/db/post_migrate/20200429002150_cleanup_sprints_state_rename.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class CleanupSprintsStateRename < ActiveRecord::Migration[6.0]
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def up
+ cleanup_concurrent_column_rename :sprints, :state, :state_enum
+ end
+
+ def down
+ undo_cleanup_concurrent_column_rename :sprints, :state, :state_enum
+ end
+end