thingspeak/db/migrate/20120215111613_add_index_to_users.rb
2014-02-17 12:05:39 -05:00

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