Commit 9e34c8dc authored by Yorick Peterse's avatar Yorick Peterse

Merge branch 'fix_set_null_false_migration' into 'master'

Adding NULL:false constraint with change_column_null instead of change_column

Closes #32450

See merge request !11471
parents a67bb1f0 2950564a
...@@ -26,12 +26,12 @@ class AddConstraintsToIssueAssigneesTable < ActiveRecord::Migration ...@@ -26,12 +26,12 @@ class AddConstraintsToIssueAssigneesTable < ActiveRecord::Migration
# disable_ddl_transaction! # disable_ddl_transaction!
def up def up
change_column :issue_assignees, :issue_id, :integer, null: false change_column_null :issue_assignees, :issue_id, false
change_column :issue_assignees, :user_id, :integer, null: false change_column_null :issue_assignees, :user_id, false
end end
def down def down
change_column :issue_assignees, :issue_id, :integer change_column_null :issue_assignees, :issue_id, true
change_column :issue_assignees, :user_id, :integer change_column_null :issue_assignees, :user_id, true
end end
end end
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