Module: ROM::Plugins::Schema::Timestamps::DSL Private
- Defined in:
- core/lib/rom/plugins/schema/timestamps.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#timestamps(*names) ⇒ Object
Sets non-default timestamp attributes.
Instance Method Details
#timestamps(*names) ⇒ Object
Sets non-default timestamp attributes
53 54 55 56 57 58 |
# File 'core/lib/rom/plugins/schema/timestamps.rb', line 53 def (*names) = (:timestamps) [:attributes] = names unless names.empty? self end |