Sha256: 1532c8558e521ee435e7253077366e2c0e2f67c1af45da2a7bc0825a8a36ac31

Contents?: true

Size: 312 Bytes

Versions: 9

Compression:

Stored size: 312 Bytes

Contents

class AddAuthenticatePasswordResetToUsers < ActiveRecord::Migration
  def change
    add_column :<%= table_name %>, :password_reset_token, :string, default: nil
    add_column :<%= table_name %>, :password_reset_sent_at, :datetime, default: nil
    add_index :<%= table_name %>, :password_reset_token
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
authenticate-0.6.0 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_password_reset_to_users.rb
authenticate-0.5.0 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_password_reset_to_users.rb
authenticate-0.4.0 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_password_reset_to_users.rb
authenticate-0.3.3 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_password_reset_to_users.rb
authenticate-0.3.2 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_password_reset_to_users.rb
authenticate-0.3.1 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_password_reset_to_users.rb
authenticate-0.3.0 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_password_reset_to_users.rb
authenticate-0.2.3 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_password_reset_to_users.rb
authenticate-0.2.2 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_password_reset_to_users.rb