20180310000000_change_columns_in_notifications_nonnullable.rb 410 B

123456789101112
  1. # frozen_string_literal: true
  2. class ChangeColumnsInNotificationsNonnullable < ActiveRecord::Migration[5.2]
  3. def change
  4. safety_assured do
  5. change_column_null :notifications, :activity_id, false
  6. change_column_null :notifications, :activity_type, false
  7. change_column_null :notifications, :account_id, false
  8. change_column_null :notifications, :from_account_id, false
  9. end
  10. end
  11. end