Auto-recognized DB fields for 'created' && 'last_updated'

Could someone point me to some info on what database field names the
framework automatically recognizes and handles? Is it correct that
this would be in the scaffolding system?

My feeble google searches have returned no love.

I'd like to add a 'created' and a 'last_updated' field to one of my
tables and have rails automatically handle them. (Much preferred than
for me to manually write up SQL statements which just call 'now()'
conditionally).

Thanks.
Peter

Could someone point me to some info on what database field names the
framework automatically recognizes and handles? Is it correct that
this would be in the scaffolding system?

Add the following fields to your table...

created_at :datetime
updated_at :datetime

I don't remember where in the docs this is recorded, but it is there.

Philip Hallstrom wrote:

Could someone point me to some info on what database field names the
framework automatically recognizes and handles? Is it correct that
this would be in the scaffolding system?

Add the following fields to your table...

created_at :datetime
updated_at :datetime

I don't remember where in the docs this is recorded, but it is there.

Here you go:

http://api.rubyonrails.org/classes/ActiveRecord/Timestamp.html

Gustav Paul