20170406215816_add_notifications_and_favourites_indices.rb 257 B

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