How to add updated_at and created_at (timestamps) columns to an existing table in rails

December 23rd, 2009

From Rails Guides …

change_table :products do |t|
  t.timestamps
end

Entry Filed under: rails

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

March 2010
S M T W T F S
« Feb    
 123456
78910111213
14151617181920
21222324252627
28293031  

Shared Rails Hosting

Most Recent Posts

Categories