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