Module Sequel::Plugins::Timestamps::ClassMethods
In: lib/sequel/plugins/timestamps.rb

Methods

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

Whether to allow manual setting of the update timestamp when creating

[Source]

    # File lib/sequel/plugins/timestamps.rb, line 62
62:         def allow_manual_timestamp_update?
63:           @allow_manual_timestamp_update
64:         end

Whether to overwrite the create timestamp if it already exists

[Source]

    # File lib/sequel/plugins/timestamps.rb, line 50
50:         def create_timestamp_overwrite?
51:           @create_timestamp_overwrite
52:         end

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

[Source]

    # File lib/sequel/plugins/timestamps.rb, line 67
67:         def set_update_timestamp_on_create?
68:           @set_update_timestamp_on_create
69:         end

[Validate]