plugin_migrations

This plugin adds the ability for all plugins to have and use migrations. It adds a new table to your database called plugin_schema_info. This helps it keep track of the migration version of each plugin.

The plugin then adds two new tasks to your project.

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. For example,

rake db:migrate:plugins # Migrates all loaded plugins
rake db:migrate:plugins PLUGIN=acts_as_commentable
rake db:migrate:plugins PLUGIN=acts_as_commentable 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. For example,

rake db:fixtures:load:plugins # Loads fixtures for all plugins
rake db:fixtures:load:plugins PLUGIN=acts_as_commentable
rake db:fixtures:load:plugins PLUGIN=acts_as_commentable FIXTURES=comments
rake db:fixtures:load:plugins PLUGIN=acts_as_commentable FIXTURES=comments,authors

Tags

Currently tagged with: migrations
You need to Login to tag this item.