diff options
Diffstat (limited to 'db/migrate/20191008200204_add_state_id_default_value.rb')
-rw-r--r-- | db/migrate/20191008200204_add_state_id_default_value.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/db/migrate/20191008200204_add_state_id_default_value.rb b/db/migrate/20191008200204_add_state_id_default_value.rb deleted file mode 100644 index 15a80163ca8..00000000000 --- a/db/migrate/20191008200204_add_state_id_default_value.rb +++ /dev/null @@ -1,24 +0,0 @@ -# frozen_string_literal: true - -# See http://doc.gitlab.com/ce/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - -class AddStateIdDefaultValue < ActiveRecord::Migration[5.2] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - def up - change_column_default :issues, :state_id, 1 - change_column_null :issues, :state_id, false - change_column_default :merge_requests, :state_id, 1 - change_column_null :merge_requests, :state_id, false - end - - def down - change_column_default :issues, :state_id, nil - change_column_null :issues, :state_id, true - change_column_default :merge_requests, :state_id, nil - change_column_null :merge_requests, :state_id, true - end -end |