This project is archived and is in readonly mode.
Timestamps not set when loading fixtures for has_and_belongs_to_many join tables
Reported by Lyle | January 15th, 2010 @ 06:53 PM
I'm using Rails 2.3.5.
When I load fixtures, Rails does not set the created_at and
updated_at timestamps for has_and_belongs_to_many (habtm) join
tables (the column values are nil). The migration file includes
t.timestamps
and the database table contains the two
timestamp columns. If I explicitly include created_at and
updated_at in the fixture file, it sets those values. I don't have
to do this with other fixture files; Rails automatically sets the
timestamp values. I'm using rake db:fixtures:load
to
load the data into my development database.
Comments and changes to this ticket
-
Ryan Bigg June 12th, 2010 @ 03:15 AM
- State changed from new to wontfix
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>