Commit 25f67a88 authored by Sean Arnold's avatar Sean Arnold

Update migration to have null: false

parent fc6d3431
......@@ -7,11 +7,13 @@ class AddIsRemovedToOncallParticipant < ActiveRecord::Migration[6.0]
def up
with_lock_retries do
add_column :incident_management_oncall_participants, :is_removed, :boolean, default: false
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
......@@ -13234,7 +13234,7 @@ CREATE TABLE incident_management_oncall_participants (
user_id bigint NOT NULL,
color_palette smallint NOT NULL,
color_weight smallint NOT NULL,
is_removed boolean DEFAULT false
is_removed boolean DEFAULT false NOT NULL
);
CREATE SEQUENCE incident_management_oncall_participants_id_seq
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment