about summary refs log tree commit diff
path: root/db/migrate/20180310000000_change_columns_in_notifications_nonnullable.rb
blob: dba789207daf74e4fd48c87798b0b213d9a3f0ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
class ChangeColumnsInNotificationsNonnullable < ActiveRecord::Migration[5.1]
  def change
    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
  end
end