summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091017214336_add_missing_indexes_to_users.rb
blob: 7eedd10fadc25b136c48f031dbf88d7d9ec6f076 (plain)
1
2
3
4
5
6
7
8
9
10
11
class AddMissingIndexesToUsers < ActiveRecord::Migration[4.2]
  def self.up
    add_index :users, [:id, :type]
    add_index :users, :auth_source_id
  end

  def self.down
    remove_index :users, :column => [:id, :type]
    remove_index :users, :auth_source_id
  end
end