[Catalyst] Maintaining updated and created timestamps in database

Len Jaffe lenjaffe at jaffesystems.com
Thu Mar 2 16:51:39 CET 2006


--- Brandon Black <blblack at gmail.com> wrote:

> On 3/1/06, hkclark at gmail.com <hkclark at gmail.com>
> wrote:
> > I know RoR will automatically maintain the dates
> of columns named
> > "updated_on" and "created_on".  Can I do a similar
> thing with
> > Catalyst?  My currently plan is to use 
> Catalyst::Model::CDBI.
> 
> The "created_on" part can be handled automagically
> at the database
> level for most SQL implementations. 

Seconded. The RDBMS is there to enforce data
constraints and integrity. Let it do it's job for you.
You'll be glad you did.

Len.
 

Leonard A. Jaffe     lenjaffe at jaffesystems.com
Leonard Jaffe Computer Systems Consulting Ltd.
Columbus, OH, USA 614-404-4214 F: 530-380-7423



More information about the Catalyst mailing list