20161122163057_remove_unneeded_indexes.rb 389 B

123456789
  1. # frozen_string_literal: true
  2. class RemoveUnneededIndexes < ActiveRecord::Migration[5.0]
  3. def change
  4. remove_index :notifications, :account_id, name: 'index_notifications_on_account_id'
  5. remove_index :settings, [:target_type, :target_id], name: 'index_settings_on_target_type_and_target_id'
  6. remove_index :statuses_tags, :tag_id, name: 'index_statuses_tags_on_tag_id'
  7. end
  8. end