Actually, I researched it somewhere, it turns out TIMESTAMP should be
completely able to replace DATETIME without caveats.
Currently in Rails
create_table("some_table") do |t|
t.timestamp(:created_at)
end
Gives
"add column created_at DATETIME"
I think you can reproduce the same exact behavior with:
"add column created_at TIMESTAMP NULL DEFAULT NULL"
This should behave exactly the same in rails, AFAIK.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---