Hi Trevor,The most common reason for this would be that you
plugin_schema_info version for the plugin was still 0 when you ran
script/generate plugin_migration for the second time. Can you confirm
that you did run rake db:migrate between generating the first plugin
migration and the second?

On 4/26/07, Trevor Rowe <[EMAIL PROTECTED]> wrote:
>
>
>
>
> I tried searching the mailing list for an answer with no luck.  I'm hoping
> this is just user error:
>
>
>
> I recently upgraded my rails app to Rails 1.2.3 (from Rails 1.1.6) and
> upgraded to engines 1.2 at the same time.  I ran script/generate
> plugin_migrations for the first time and it created an application migration
> would run my plugin migration from 0-45 (as expected).
>
>
>
> I added a new migration to my plugin, ran the script/generate
> plugin_migration again and it added a second application migration, but in
> the down method it migrates to version 0 instead of version 45 as I would
> have expected.  Any ideas on what I could be doing wrong?  I checked the db
> and the plugins_schema_info table has my plugin currently at version 45 and
> my application at 1.  Any suggestions would be helpful.
>
>
>
> Trevor Rowe
> _______________________________________________
> engine-users mailing list
> [email protected]
> http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org
>
>


-- 
* J *
  ~
_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to