Migrations with Engines 1.2?

So do I have to install plugin_migrations to run my migrations now? I
installed the plugin_dependencies, loaded_plugins, and plugin_migrations
plugins (uggggh) and rake db:migrate:plugins gibs with:

rake aborted!
can’t convert Array into String
/Users/tarcieri/src/clickcaster/config/…/vendor/plugins/plugin_migrations/tasks/plugin_migrations_tasks.rake:13:in
`basename’

Awesome

Run a plugin_migration yes. And than rake db:migrate. Works fine here.

No - you don’t need to install any other plugins. Run

script/generate plugin_migration [PLUGIN=name]

To create migrations in your application for your installed plugins.
This is different from pluginaweek’s “plugin_migrations” plugin - it’s
a generator that comes with the engines plugin.

Well, never mind… adding PLUGIN=my_engine solved the problem.

Is this the “recommended” way of doing migrations now?

  • Tony

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs