Topic: What are timestamp fields useful for?

Does rails need the created_at fields for anything?

I guess they are useful for incremental backups and cron processing.... anything else?

Re: What are timestamp fields useful for?

Rails doesn't need the created_at fields. You only need to add them if you need them.

Railscasts - Free Ruby on Rails Screencasts

Re: What are timestamp fields useful for?

thank you smile

Re: What are timestamp fields useful for?

One more question, why do most examples of user/login schemas include timestamps?  How would they be used with login data?

Re: What are timestamp fields useful for?

Suppose (less than hypothetically) that I want to know how many active users my webapp has to determine how its converting.  If I keep two timestamps, for example a created_on and a last_access_on in my account model (sadly, I have to update that second one myself with a filter), then I can run my monthly report and tell with a few fairly trivial statements how sticky my app is.

Re: What are timestamp fields useful for?

It depends. Some might want to display the date the user registered (like on this forum). Others may want to use it for tracking purposes to see how long the user has been using the site.

Railscasts - Free Ruby on Rails Screencasts

Re: What are timestamp fields useful for?

Timestamps can help with debugging too.

Re: What are timestamp fields useful for?

Without sounding too naive, how does timestamps help with debugging?

=====================
Sam G.