diff options
Diffstat (limited to 'db/post_migrate')
-rw-r--r-- | db/post_migrate/20200226124757_remove_health_status_from_epics.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/db/post_migrate/20200226124757_remove_health_status_from_epics.rb b/db/post_migrate/20200226124757_remove_health_status_from_epics.rb new file mode 100644 index 00000000000..e59edbacd2b --- /dev/null +++ b/db/post_migrate/20200226124757_remove_health_status_from_epics.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +class RemoveHealthStatusFromEpics < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def up + with_lock_retries do + remove_column :epics, :health_status + end + end + + def down + with_lock_retries do + add_column :epics, :health_status, :integer, limit: 2 + end + end +end |