Plugin Migrations plugin
Plugin details
Documentation
ruby script/plugin install http://svn.pluginaweek.org/trunk/plugins/active_record/migrations/plugin_migrations
The plugin can be used via the new rake tasks that have been added. The plugins which are migrated are based on what is stored in +Rails.plugins+. For more information on this attributes, see the loaded_plugins[http://wiki.pluginaweek.org/Loaded_plugins] plugin.
db:migrate:plugins
===================
Running db:migrate:plugins will run the migrations for every plugin that is loaded. You can also specify exactly which plugin you want to migrate.
Examples:
Assuming the following directory structure:
vendor/ vendor/plugins/ vendor/plugins/acts_as_bunny/ vendor/plugins/acts_as_as_chicken/ rake db:migrate:plugins # Migrates both acts_as_bunny and acts_as_chicken rake db:migrate:plugins PLUGIN=acts_as_bunny rake db:migrate:plugins PLUGIN=acts_as_bunny VERSION=2
db:fixtures:load:plugins
=======================
Running db:fixtures:load:plugins will load the fixtures for every plugin that is loaded. You can also specify exactly which plugin you want to load fixtures for.
Examples:
Assuming the following directory structure:
vendor/ vendor/plugins/ vendor/plugins/acts_as_bunny/ vendor/plugins/acts_as_as_chicken/ rake db:fixtures:load:plugins # Loads fixtures for both acts_as_bunny and acts_as_chicken rake db:fixtures:load:plugins PLUGIN=acts_as_bunny rake db:fixtures:load:plugins PLUGIN=acts_as_bunny FIXTURES=bunnies rake db:fixtures:load:plugins PLUGIN=acts_as_bunny FIXTURES=bunnies,rabbits
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: hardway, 9 months ago

