Change columns in notifications nonnullable (#6764)
parent
fa310695fa
commit
b2a4ffd3a9
@ -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 |
@ -1,4 +1,4 @@ |
||||
Fabricator(:notification) do |
||||
activity_id 1 |
||||
activity_type 'Favourite' |
||||
activity fabricator: [:mention, :status, :follow, :follow_request, :favourite].sample |
||||
account |
||||
end |
||||
|
Loading…
Reference in new issue