Displaying 1 result from an estimated 1 matches for "002_data_load".
2006 Feb 24
3
Migrations, data loads and changes to the model
Guys,
I''ve run across an interesting scenario with my migrations, and I hope
you might share some insight.
Let''s say I have 3 migrations and two Models (Person and Car):
001_initial_schema.rb
002_data_load.rb
003_add_car_association.rb
The first creates the initial schema...the second loads default data
using model objects of Person to do so, and the third creates a new
table, "cars", and modifies the "persons" table to create a :has_one
relationship of Person[1]->[1]Car...