mirror of https://github.com/mastodon/mastodon
Add foreign key to prevent reblogs of non-existent (after race conditions) statuses from happening
Fix issue with detailed status view not supporting unreblogging/unfavouritingpull/643/head
parent
5ddad41245
commit
a1e96ae94f
@ -0,0 +1,5 @@
|
||||
class AddReblogOfIdForeignKeyToStatuses < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_foreign_key :statuses, :statuses, column: :reblog_of_id, on_delete: :cascade
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue