That got it James, thanks for the help! Here's what I did specifically.
1. Deleted the row from plugin_schema_info that contained my plugin 2. Deleted the application migration that was created, file 087_project_rank_to_version_1.rb 3. re-ran "script/generate plugin_migration" 4. ran "rake db:migrate VERSION=86" 5. ran "rake db:migrate" Thanks for all your help. As a RoR and Engines noob, I really appreciate it! Todd On Thu, Mar 6, 2008 at 10:15 AM, James Adam <[EMAIL PROTECTED]> wrote: > 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 >
_______________________________________________ Engine-Developers mailing list [email protected] http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org
