2023-07-12 16:47:08 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-03-27 23:09:10 +09:00
|
|
|
class ChangeColumnsInNotificationsNonnullable < ActiveRecord::Migration[5.2]
|
2018-03-24 20:51:28 +09:00
|
|
|
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
|