2023-03-27 15:09:10 +01:00
|
|
|
class ChangeColumnsInNotificationsNonnullable < ActiveRecord::Migration[5.2]
|
2018-03-24 11:51:28 +00:00
|
|
|
def change
|
2019-12-29 04:39:08 +00:00
|
|
|
safety_assured do
|
|
|
|
change_column_null :notifications, :activity_id, false
|
|
|
|
change_column_null :notifications, :activity_type, false
|
|
|
|
change_column_null :notifications, :account_id, false
|
|
|
|
change_column_null :notifications, :from_account_id, false
|
|
|
|
end
|
2018-03-24 11:51:28 +00:00
|
|
|
end
|
|
|
|
end
|