Thursday, December 13, 2007

Data Migration using ActiveRecord

If you are using ActiveRecord to create new records while you are migrating from a old database, use new instead of create when you want to use the same primary key. Because create does not allow you change the primary key.

No comments:

Post a Comment