20170406215816_add_notifications_and_favourites_indices.rb 226 B

1234567
  1. class AddNotificationsAndFavouritesIndices < ActiveRecord::Migration[5.0]
  2. def change
  3. add_index :notifications, [:activity_id, :activity_type]
  4. add_index :accounts, :url
  5. add_index :favourites, :status_id
  6. end
  7. end