class

EmailConfirmation

Inherits Avram::PrimaryKeyMethods < Lucille::StatusColumns < Lucille::SuccessStatusColumns < Shield::OptionalBelongsToUser < Shield::IpAddressColumn < Shield::EmailConfirmation < DB::Mappable < DB::Serializable < LuckyCache::Cacheable < BaseModel < Shield::Model < DB::Mappable < DB::Serializable < LuckyCache::Cacheable < Avram::Model < Avram::SchemaEnforcer < Avram::Polymorphic < Avram::Associations < Avram::Associations::BelongsTo < Avram::Associations::HasOne < Avram::Associations::HasMany < Reference < Object

Constants

ASSOCIATIONS = [{type: User, assoc_name: user, foreign_key: :user_id, relationship_type: :belongs_to, through: nil, base_query_class: nil}] of Nil
COLUMNS = [{name: ip_address, type: String, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: user_id, type: User::PrimaryKeyType, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: active_at, type: Time, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: inactive_at, type: Time, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: success, type: Bool, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: email, type: String, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: token_digest, type: String, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: id, type: Int64, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}] of Nil
PRIMARY_KEY_NAME = :id
PRIMARY_KEY_TYPE = Int64

Constructors

new(ip_address : String, user_id : Int64 | Nil, active_at : Time, inactive_at : Time | Nil, success : Bool, email : String, token_digest : String, id : Int64)
new(rs : DB::ResultSet)

Class methods

column_names
columns
ensure_correct_column_mappings!
from_rs(rs : DB::ResultSet)
primary_key_name
schema_enforcer_validations
table_name

Instance methods

active_at
base_query_class

This makes it easy for plugins and extensions to use the base SaveOperation

delete_operation_class
email
id
inactive_at
ip_address
save_operation_class
status
success
success?
token_digest
user
user!
user_count
user_id
user_preloaded?

Returns true if the association has been preloaded

user_query

Nested types