module Sequel::Plugins::Timestamps::ClassMethods

  1. lib/sequel/plugins/timestamps.rb

Attributes

create_timestamp_field [R]

The field to store the create timestamp

update_timestamp_field [R]

The field to store the update timestamp

Public Instance methods

allow_manual_timestamp_update? ()

Whether to allow manual setting of the update timestamp when creating

[show source]
# File lib/sequel/plugins/timestamps.rb, line 61
def allow_manual_timestamp_update?
  @allow_manual_timestamp_update
end
create_timestamp_overwrite? ()

Whether to overwrite the create timestamp if it already exists

[show source]
# File lib/sequel/plugins/timestamps.rb, line 49
def create_timestamp_overwrite?
  @create_timestamp_overwrite
end
set_update_timestamp_on_create? ()

Whether to set the update timestamp to the create timestamp when creating

[show source]
# File lib/sequel/plugins/timestamps.rb, line 66
def set_update_timestamp_on_create?
  @set_update_timestamp_on_create
end