diff options
author | kibigo! <marrus-sh@users.noreply.github.com> | 2017-08-01 13:07:43 -0700 |
---|---|---|
committer | kibigo! <marrus-sh@users.noreply.github.com> | 2017-08-01 13:20:29 -0700 |
commit | 8150689b48716bb016d492d28cef08600a4b315e (patch) | |
tree | a05a2539e894c79ef17698dce0da5a6af0c25bf6 /db/migrate/20170720000000_add_index_favourites_on_account_id_and_id.rb | |
parent | b61e3daf983d87c6d2de7e54d420c2e8f5a531e6 (diff) | |
parent | 7ef848256871454a790a9b7cc725053c67ba3da4 (diff) |
Merge upstream (#111)
Diffstat (limited to 'db/migrate/20170720000000_add_index_favourites_on_account_id_and_id.rb')
-rw-r--r-- | db/migrate/20170720000000_add_index_favourites_on_account_id_and_id.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20170720000000_add_index_favourites_on_account_id_and_id.rb b/db/migrate/20170720000000_add_index_favourites_on_account_id_and_id.rb new file mode 100644 index 000000000..99903584c --- /dev/null +++ b/db/migrate/20170720000000_add_index_favourites_on_account_id_and_id.rb @@ -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 |