Add index favourites on account_id and id (#4360)
This commit is contained in:
1 parent
2f8bfb3d38
commit
7bf0afb1dc
2 files changed
+8
-1
No files matched your search
@@ -0,0 +1,6 @@
|
||||
class AddIndexFavouritesOnAccountIdAndId < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
# Used to query favourites of an account ordered by id.
|
||||
add_index :favourites, [:account_id, :id]
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user