github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jodosha / plugin_migrations

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 13
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (1)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Rake tasks for running plugin migrations. — Read more

  cancel

http://rails.lighthouseapp.com/projects/8994/tickets/2058-rake-tasks-for-run-engine-migrations

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Specify installation note 
jodosha (author)
Wed Mar 11 02:32:07 -0700 2009
commit  a19f00b6da089848e080c0a0c26b806b0b543fb2
tree    5c316877d771b5a7219085627f7a747cf1e636c1
parent  080e24fabf1fb7897fd201d7a19171aec3ff5bca
plugin_migrations /
name age
history
message
file MIT-LICENSE Sat Feb 28 10:14:32 -0800 2009 First commit [jodosha]
file README Sat Feb 28 10:14:32 -0800 2009 First commit [jodosha]
file Rakefile Sat Feb 28 10:14:32 -0800 2009 First commit [jodosha]
file init.rb Sat Feb 28 10:14:32 -0800 2009 First commit [jodosha]
file install.rb Wed Mar 11 02:32:07 -0700 2009 Specify installation note [jodosha]
directory lib/ Sat Feb 28 10:14:32 -0800 2009 First commit [jodosha]
directory tasks/ Tue Mar 03 11:16:18 -0800 2009 Run migrations from plugins first, then from ap... [jodosha]
directory test/ Sat Feb 28 10:14:32 -0800 2009 First commit [jodosha]
file uninstall.rb Sat Feb 28 10:14:32 -0800 2009 First commit [jodosha]
README
PluginMigrations
================

Rake tasks for running plugin migrations.


Usage
=====

$ rake db:migrate                                                  # Migrate application and plugins
$ rake db:migrate:application                                      # Migrate only the application
$ rake db:migrate:plugins                                          # Migrate all the plugins
$ rake db:migrate:plugins PLUGIN=foo                               # Migrate "foo"
$ rake db:migrate:plugins PLUGIN=foo PLUGIN_VERSION=1              # Migrate "foo" to version 1
$ rake db:migrate:plugins PLUGIN=foo PLUGIN_VERSION=20090228035457 # Migrate "foo" to version 20090228035457
$ rake db:migrate:plugins:down PLUGIN=foo PLUGIN_VERSION=1         # Migrate down "foo" to version 1
$ rake db:migrate:plugins:up PLUGIN=foo PLUGIN_VERSION=1           # Migrate up "foo" to version 1
$ rake db:migrate:redo                                             # Migrate again the last step from the application
$ rake db:migrate:reset                                            # Migrate down then up migrations from application 
and plugins
$ rake db:rollback                                                 # Migrate down the application of one step
$ rake db:rollback STEP=3                                          # Migrate down the application of three steps
$ rake db:migrate:up VERSION=1                                     # Migrate up the application to version 1
$ rake db:migrate:down VERSION=1                                   # Migrate down the application to version 1
$ rake db:plugins:redo PLUGIN=foo                                  # Migrate again the last step for "foo"
$ rake db:plugins:reset PLUGIN=foo                                 # Migrate down then up migrations from "foo"
$ rake db:plugins:rollback PLUGIN=foo                              # Migrate down "foo" of one step
$ rake db:plugins:rollback PLUGIN=foo STEP=3                       # Migrate down "foo" of three steps
$ rake db:version                                                  # Print the application version value
$ rake db:plugins:version PLUGIN=foo                               # Print the "foo" version value


When you need to rename a plugin, run:

$ script/plugin rename cached-models cached_models



Copyright (c) 2009 Luca Guidi, released under the MIT license
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server