diff options
Diffstat (limited to 'db/migrate/20210222030537_add_is_removed_to_oncall_participant.rb')
-rw-r--r-- | db/migrate/20210222030537_add_is_removed_to_oncall_participant.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/db/migrate/20210222030537_add_is_removed_to_oncall_participant.rb b/db/migrate/20210222030537_add_is_removed_to_oncall_participant.rb new file mode 100644 index 00000000000..83b81a067ab --- /dev/null +++ b/db/migrate/20210222030537_add_is_removed_to_oncall_participant.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +class AddIsRemovedToOncallParticipant < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def up + with_lock_retries do + add_column :incident_management_oncall_participants, :is_removed, :boolean, default: false, null: false + end + end + + def down + with_lock_retries do + remove_column :incident_management_oncall_participants, :is_removed + end + end +end |