0
0
Fork 0

Change columns in notifications nonnullable (#6764)

This commit is contained in:
Akihiko Odaki 2018-03-24 20:51:28 +09:00 committed by Eugen Rochko
parent fa310695fa
commit b2a4ffd3a9
5 changed files with 23 additions and 17 deletions

View file

@ -0,0 +1,8 @@
class ChangeColumnsInNotificationsNonnullable < ActiveRecord::Migration[5.1]
def change
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