gab-social/db/migrate/20170720000000_add_index_fa...

7 lines
201 B
Ruby
Raw Normal View History

2019-07-02 08:10:25 +01:00
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