mirror of https://github.com/mastodon/mastodon
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
|
Fabricator(:notification) do
|
||||||
activity_id 1
|
activity fabricator: [:mention, :status, :follow, :follow_request, :favourite].sample
|
||||||
activity_type 'Favourite'
|
account
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue