10 lines
156 B
Ruby
10 lines
156 B
Ruby
class AddIndexToUsers < ActiveRecord::Migration
|
|
def self.up
|
|
add_index :users, :email
|
|
end
|
|
|
|
def self.down
|
|
remove_index :users, :email
|
|
end
|
|
end
|