7fb0b462e2
https://gitlab.com/soapbox-pub/soapbox/merge_requests/120/diffs#diff-content-917c7fb80cf426cfae1e7baaa21b3d90ccb2b29c
6 lines
224 B
Ruby
6 lines
224 B
Ruby
class AddForeignKeyConstraintToUserLastReadNotification < ActiveRecord::Migration[5.2]
|
|
def change
|
|
add_foreign_key :users, :notifications, column: :last_read_notification, on_delete: :nullify, validate: false
|
|
end
|
|
end
|