def self.primary_key_name : Symbol | Nil
        #
      
      
      class EmailConfirmation
- EmailConfirmation
 - BaseModel
 - Avram::Model
 - Reference
 - Object
 
Included Modules
- Avram::PrimaryKeyMethods
 - DB::Mappable
 - DB::Serializable
 - Lucille::StatusColumns
 - Lucille::SuccessStatusColumns
 - LuckyCache::Cachable
 - Shield::EmailConfirmation
 - Shield::IpAddressColumn
 - Shield::OptionalBelongsToUser
 
Defined in:
models/email_confirmation.crConstant Summary
- 
        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 Method Summary
- .column_names : Array(Symbol)
 - .columns : Array(NamedTuple(name: Symbol, nilable: Bool, type: String))
 - .ensure_correct_column_mappings!
 - .from_rs(rs : DB::ResultSet)
 - .primary_key_name : Symbol | Nil
 - .schema_enforcer_validations
 - .table_name : String
 
Instance Method Summary
- #active_at : Time
 - 
        #base_query_class : ::EmailConfirmation::BaseQuery.class
        
          
This makes it easy for plugins and extensions to use the base SaveOperation
 - #delete_operation_class : ::EmailConfirmation::DeleteOperation.class
 - #email : String
 - #id : Int64
 - #inactive_at : Time | Nil
 - #ip_address : String
 - #save_operation_class : ::EmailConfirmation::SaveOperation.class
 - #status : SuccessStatus
 - #success : Bool
 - #success? : Bool
 - #token_digest : String
 - #user : User | Nil
 - #user! : User | Nil
 - #user_count : Int64
 - #user_id : User::PrimaryKeyType | Nil
 - 
        #user_preloaded? : Bool
        
          
Returns
trueif the association has been preloaded - #user_query
 
Constructor methods inherited from class BaseModel
  
  
    
      new(rs : DB::ResultSet)
    new
    
  
      
  Class methods inherited from class BaseModel
  
  
    
      from_rs(rs : DB::ResultSet)
    from_rs, 
    
  
    
      read_database : Avram::Database.class
    read_database, 
    
  
    
      write_database : Avram::Database.class
    write_database
    
  
      
  Macros inherited from class BaseModel
  
  
    
      default_columns
    default_columns
    
  
    
      
      
      
      
    
      
      
      
      
    
      
      
      
      
    
      
      
      
      
    
      
      
      
      
    
      
      
      
      
    
      
      
      
      
    
      
      
      
      
    
      
      
      
      
    
      
      
      
      
    
      
      
      
      
    
      
      
      
      
    
      
      
      
      
    
  Constructor Detail
        
        def self.new(ip_address : String, user_id : Int64 | Nil, active_at : Time, inactive_at : Time | Nil, success : Bool, email : String, token_digest : String, id : Int64)
        #
      
      
      Class Method Detail
Instance Method Detail
This makes it easy for plugins and extensions to use the base SaveOperation