Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8bbc485748
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (12 sloc) 0.423 kb
class AddUsersPasswordResetFields < ActiveRecord::Migration
def self.up
add_column :users, :password_reset_token, :string, :default => "", :null => false
add_column :users, :email, :string, :default => "", :null => false
add_index :users, :password_reset_token
add_index :users, :email
end
def self.down
remove_column :users, :password_reset_token
remove_column :users, :email
end
end
Jump to Line
Something went wrong with that request. Please try again.