diff options
author | Shel R <Yiskah.Raphen@gmail.com> | 2017-04-07 22:35:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 22:35:45 -0400 |
commit | c945f29e96d537a827b95b3efb035ec8084576a1 (patch) | |
tree | dac7e26c482f0a69e00f031e771e58858e64b054 /db/migrate | |
parent | c62696bc467133869f6b1d39b923135b0e64900f (diff) | |
parent | 0d4d42dce6e7b0856469317da9e039ec5dc431b1 (diff) |
Merge branch 'master' into patch-1
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 |