Sha256: 6260ff4334b6a301f4c15e946fc67b406a4614848521e33da386290f14a0f06a

Contents?: true

Size: 381 Bytes

Versions: 91

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

91 entries across 91 versions & 2 rubygems

Version Path
plutonium-0.13.2 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.13.1 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.13.0 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.12.14 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.12.13 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.12.12 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.12.11 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.12.10 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.12.9 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.12.8 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.12.7 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.12.5 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.12.4 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.12.3 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.12.2 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.12.1 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.12.0 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.11.2 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.11.1 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.11.0 lib/generators/pu/rodauth/migration/active_record/reset_password.erb