Class: SorceryResetPassword
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- SorceryResetPassword
- Defined in:
- lib/generators/sorcery_migration/templates/reset_password.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/generators/sorcery_migration/templates/reset_password.rb', line 10 def self.down remove_index :users, :reset_password_token remove_column :users, :reset_password_email_sent_at remove_column :users, :reset_password_token_expires_at remove_column :users, :reset_password_token end |
.up ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/generators/sorcery_migration/templates/reset_password.rb', line 2 def self.up add_column :users, :reset_password_token, :string, :default => nil add_column :users, :reset_password_token_expires_at, :datetime, :default => nil add_column :users, :reset_password_email_sent_at, :datetime, :default => nil add_index :users, :reset_password_token end |