Sha256: 6260ff4334b6a301f4c15e946fc67b406a4614848521e33da386290f14a0f06a

Contents?: true

Size: 381 Bytes

Versions: 85

Compression:

Stored size: 381 Bytes

Contents

# Used by the password reset feature
create_table :<%= table_prefix %>_password_reset_keys, id: false do |t|
  t.<%= primary_key_type(nil) %> :id, primary_key: true
  t.foreign_key :<%= table_prefix.pluralize %>, column: :id
  t.string :key, null: false
  t.datetime :deadline, null: false
  t.datetime :email_last_sent, null: false, default: -> { "<%= current_timestamp %>" }
end

Version data entries

85 entries across 85 versions & 2 rubygems

Version Path
rodauth-rails-1.13.0 lib/generators/rodauth/migration/active_record/reset_password.erb
rodauth-rails-1.12.0 lib/generators/rodauth/migration/active_record/reset_password.erb
rodauth-rails-1.11.0 lib/generators/rodauth/migration/active_record/reset_password.erb
rodauth-rails-1.10.0 lib/generators/rodauth/migration/active_record/reset_password.erb
rodauth-rails-1.9.0 lib/generators/rodauth/migration/active_record/reset_password.erb