Skip to content

Note: ActiveRecord Timestamps

jessy edited this page Oct 11, 2011 · 3 revisions

Timestamps

If you’re familiar with ActiveRecord you’re probably familiar with its timestamp columns: created_at, created_on, updated_at, updated_on, etc. When importing data the timestamp fields will continue to work as expected and each timestamp column will be set.

Should you wish to specify yourself those columns, you may use the option :timestamps => false

Timezones

If you are using custom time zones, these will be respected when performing imports as well as long as ActiveRecord::Base.default_timezone is set, which for practically all Rails apps it is.

Clone this wiki locally