DISQUS

ruby on rails blog: Rails 2.0 Timestamps | ruby on rails blog

  • Fred · 1 year ago
    Nice website. What do you use to color code the ruby, syntax?

    On the 't.timestamps', I thought it was singular, t.timestamp. And if you do 'rake db:schema:dump', it comes out t.datetime. I think it's the same thing.
  • Jaime Bellmyer · 1 year ago
    The timestamp columns created are actually 'created_at' and 'updated_at', both datetime fields. The suffix '_on' denotes a date field, and the suffix '_at' denotes a datetime field. Thanks for the blog!