2018-03-24 20:51:28 +09:00
|
|
|
class ChangeColumnsInNotificationsNonnullable < ActiveRecord::Migration[5.1]
|
|
|
|
def change
|
2019-12-29 13:39:08 +09: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 20:51:28 +09:00
|
|
|
end
|
|
|
|
end
|