On 05/03/2008, Todd Nine <[EMAIL PROTECTED]> wrote: > class ProjectRankToVersion1 < ActiveRecord::Migration > def self.up > Rails.plugins["project_rank"].migrate(1) > end > > def self.down > Rails.plugins["project_rank"].migrate(2) > end > end
OK - so it looks like the plugin_migration generator thinks your "project_rank" plugin is currently at version 2 (which is why the 'down' migration is trying to go to that version), but the latest migration file it can actually find would take it to version 1. Can you look at the contents of the plugin_schema table? Is there any way that the version for that plugin could've been set to 2 at some point in the past? Since this project sounds like it's just starting, you should be able to reset the value in the database to "0", and change the version in the generated down method by hand. Hopefully that should sort it out. James -- * J * ~ _______________________________________________ Engine-Developers mailing list [email protected] http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org
