about summary refs log tree commit diff
path: root/db/migrate/20170720000000_add_index_favourites_on_account_id_and_id.rb
blob: 99903584c99c07652e424cddec1ee96428f85b5e (plain) (blame)
1
2
3
4
5
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