search for: 115ed4fd

Displaying 1 result from an estimated 1 matches for "115ed4fd".

Did you mean: 115ed46
2006 Jan 24
1
Rather sticky migrate problem
Here''s the problem... Typo has ~35 migrate scripts. Script 3 makes a minor schema change, then migrates data to the new schema. For instance: add_column :articles, :user_id, :integer Article.find(:all).each do |a| a.user=User.find_by_name(a.author) a.save end This makes sense... except that a revision 35 model has been instantiated on a revision 3 schema!