2023-03-27 17:09:10 +03:00
|
|
|
class ChangeColumnsInNotificationsNonnullable < ActiveRecord::Migration[5.2]
|
2018-03-24 13:51:28 +02:00
|
|
|
def change
|
2019-12-29 06:39:08 +02: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 13:51:28 +02:00
|
|
|
end
|
|
|
|
end
|