Module: Sequel::Plugins::Timestamps::ClassMethods
- Defined in:
- lib/sequel/plugins/timestamps.rb
Instance Attribute Summary collapse
- 
  
    
      #create_timestamp_field  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    The field to store the create timestamp. 
- 
  
    
      #update_timestamp_field  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    The field to store the update timestamp. 
Instance Method Summary collapse
- 
  
    
      #allow_manual_timestamp_update?  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    Whether to allow manual setting of the update timestamp when creating. 
- 
  
    
      #create_timestamp_overwrite?  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    Whether to overwrite the create timestamp if it already exists. 
- 
  
    
      #set_update_timestamp_on_create?  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    Whether to set the update timestamp to the create timestamp when creating. 
Instance Attribute Details
#create_timestamp_field ⇒ Object (readonly)
The field to store the create timestamp
| 44 45 46 | # File 'lib/sequel/plugins/timestamps.rb', line 44 def @create_timestamp_field end | 
#update_timestamp_field ⇒ Object (readonly)
The field to store the update timestamp
| 47 48 49 | # File 'lib/sequel/plugins/timestamps.rb', line 47 def @update_timestamp_field end | 
Instance Method Details
#allow_manual_timestamp_update? ⇒ Boolean
Whether to allow manual setting of the update timestamp when creating
| 62 63 64 | # File 'lib/sequel/plugins/timestamps.rb', line 62 def @allow_manual_timestamp_update end | 
#create_timestamp_overwrite? ⇒ Boolean
Whether to overwrite the create timestamp if it already exists
| 50 51 52 | # File 'lib/sequel/plugins/timestamps.rb', line 50 def @create_timestamp_overwrite end | 
#set_update_timestamp_on_create? ⇒ Boolean
Whether to set the update timestamp to the create timestamp when creating
| 67 68 69 | # File 'lib/sequel/plugins/timestamps.rb', line 67 def @set_update_timestamp_on_create end |