about summary refs log tree commit diff
path: root/db/migrate/20180206000000_change_user_id_nonnullable.rb
blob: 1196383871301c8fe33bb03152f6b157a0e37df6 (plain) (blame)
1
2
3
4
5
6
7
8
class ChangeUserIdNonnullable < ActiveRecord::Migration[5.2]
  def change
    safety_assured do
      change_column_null :invites, :user_id, false
      change_column_null :web_settings, :user_id, false
    end
  end
end