diff options
author | foxiehkins <foxiehkins@gmail.com> | 2017-04-07 14:01:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 14:01:20 +0100 |
commit | 41396de7a90f23dd0afe1afa3dab1be43b7b6ecd (patch) | |
tree | 5cacec3a442a671990f972196fa90c90903e83cf /db/migrate | |
parent | ac1989d2c07b707699641987d62697103698393c (diff) | |
parent | 4e41cd9ab8f51120d558b70528b163c98993be53 (diff) |
Merge branch 'master' into master
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20170406215816_add_notifications_and_favourites_indices.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20170406215816_add_notifications_and_favourites_indices.rb b/db/migrate/20170406215816_add_notifications_and_favourites_indices.rb new file mode 100644 index 000000000..00e41bf3a --- /dev/null +++ b/db/migrate/20170406215816_add_notifications_and_favourites_indices.rb @@ -0,0 +1,7 @@ +class AddNotificationsAndFavouritesIndices < ActiveRecord::Migration[5.0] + def change + add_index :notifications, [:activity_id, :activity_type] + add_index :accounts, :url + add_index :favourites, :status_id + end +end |