module ROM::Plugins::Schema::Timestamps::DSL

@api private

Public Instance Methods

timestamps(*names) click to toggle source

Sets non-default timestamp attributes

@example

schema do
  use :timestamps
  timestamps :create_on, :updated_on
end

@api public

# File lib/rom/plugins/schema/timestamps.rb, line 53
def timestamps(*names)
  options = plugin_options(:timestamps)
  options[:attributes] = names unless names.empty?

  self
end