Sha256: 88d9e93fca8cf2c3deff65d9a342810e66b1991b925b20e82abb025906244ed0

Contents?: true

Size: 549 Bytes

Versions: 7

Compression:

Stored size: 549 Bytes

Contents

class SorceryResetPassword < <%= migration_class_name %>
  def change
    add_column :<%= tableized_model_class %>, :reset_password_token, :string, default: nil
    add_column :<%= tableized_model_class %>, :reset_password_token_expires_at, :datetime, default: nil
    add_column :<%= tableized_model_class %>, :reset_password_email_sent_at, :datetime, default: nil
    add_column :<%= tableized_model_class %>, :access_count_to_reset_password_page, :integer, default: 0

    add_index :<%= tableized_model_class %>, :reset_password_token
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sorcery-0.17.0 lib/generators/sorcery/templates/migration/reset_password.rb
sorcery-0.16.5 lib/generators/sorcery/templates/migration/reset_password.rb
sorcery-0.16.4 lib/generators/sorcery/templates/migration/reset_password.rb
sorcery-0.16.3 lib/generators/sorcery/templates/migration/reset_password.rb
sorcery-0.16.2 lib/generators/sorcery/templates/migration/reset_password.rb
sorcery-0.16.1 lib/generators/sorcery/templates/migration/reset_password.rb
sorcery-0.16.0 lib/generators/sorcery/templates/migration/reset_password.rb