Sha256: ea6fbe7bb2dfb64dd3e4934b6b49624d1a9a45ee3beb54b3e23eacf63cf34b7a

Contents?: true

Size: 498 Bytes

Versions: 13

Compression:

Stored size: 498 Bytes

Contents

class SorceryResetPassword < ActiveRecord::Migration
  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
  end

  def self.down
    remove_column :users, :reset_password_email_sent_at
    remove_column :users, :reset_password_token_expires_at
    remove_column :users, :reset_password_token
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sorcery-0.6.1 lib/generators/sorcery_migration/templates/reset_password.rb
sorcery-0.6.0 lib/generators/sorcery_migration/templates/reset_password.rb
sorcery-0.5.30 lib/generators/sorcery_migration/templates/reset_password.rb
sorcery-0.5.3 lib/generators/sorcery_migration/templates/reset_password.rb
sorcery-0.5.21 lib/generators/sorcery_migration/templates/reset_password.rb
sorcery-0.5.2 lib/generators/sorcery_migration/templates/reset_password.rb
sorcery-0.5.1 lib/generators/sorcery_migration/templates/reset_password.rb
sorcery-0.5.0 lib/generators/sorcery_migration/templates/reset_password.rb
sorcery-0.4.2 lib/generators/sorcery_migration/templates/reset_password.rb
sorcery-0.4.1 lib/generators/sorcery_migration/templates/reset_password.rb
sorcery-0.4.0 lib/generators/sorcery_migration/templates/reset_password.rb
sorcery-0.3.1 lib/generators/sorcery_migration/templates/reset_password.rb
sorcery-0.3.0 lib/generators/sorcery_migration/templates/reset_password.rb