mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:13:39 +08:00
PERF: Remove foreign keys from bookmarks (#9837)
As a general rule we do not add FKs in Discourse and instead rely on consistency checks at weekly/daily intervals
This commit is contained in:
parent
72f139191e
commit
e334133294
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveFksFromBookmarks < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
remove_foreign_key :bookmarks, :topics
|
||||
remove_foreign_key :bookmarks, :posts
|
||||
remove_foreign_key :bookmarks, :users
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user