Active Records will automatically record creation and/or update timestamps of database objects if fields of the names created_at/created_on or updated_at/updated_on are present. This module is automatically included, so you don’t need to do that manually.

This behavior can be turned off by setting ActiveRecord::Base.record_timestamps = false. This behavior by default uses local time, but can use UTC by setting ActiveRecord::Base.default_timezone = :utc

Show files where this module is defined (1 file)
Register or log in to add new notes.