logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

20170720000000_add_index_favourites_on_account_id_and_id.rb (201B)


  1. class AddIndexFavouritesOnAccountIdAndId < ActiveRecord::Migration[5.1]
  2. def change
  3. # Used to query favourites of an account ordered by id.
  4. add_index :favourites, [:account_id, :id]
  5. end
  6. end