module Sequel::Plugins::Timestamps::ClassMethods

def create_timestamp_overwrite?

Whether to overwrite the create timestamp if it already exists
def create_timestamp_overwrite?
  @create_timestamp_overwrite
end

def inherited(subclass)

Copy the class instance variables used from the superclass to the subclass
def inherited(subclass)
  super
  [:@create_timestamp_field, :@update_timestamp_field, :@create_timestamp_overwrite, :@set_update_timestamp_on_create].each do |iv|
    subclass.instance_variable_set(iv, instance_variable_get(iv))
  end
end

def set_update_timestamp_on_create?

Whether to set the update timestamp to the create timestamp when creating
def set_update_timestamp_on_create?
  @set_update_timestamp_on_create
end