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
plutonium-0.19.2 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.19.1 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.19.0 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.18.8 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.18.7 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.18.6 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.18.5 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.18.4 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.18.3 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.18.2 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.18.1 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.18.0 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.16.5 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
rodauth-rails-2.0.2 lib/generators/rodauth/migration/active_record/reset_password.erb
rodauth-rails-2.0.1 lib/generators/rodauth/migration/active_record/reset_password.erb
rodauth-rails-2.0.0 lib/generators/rodauth/migration/active_record/reset_password.erb
plutonium-0.16.4 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.16.3 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.16.1 lib/generators/pu/rodauth/migration/active_record/reset_password.erb
plutonium-0.16.0 lib/generators/pu/rodauth/migration/active_record/reset_password.erb