Displaying 1 result from an estimated 1 matches for "upgradetomarchrelease".
2010 Mar 07
6
some love for migrations
...The basic idea is to add a method to the Migration class:
migrate_engine(engine_name, target_version). You have to manually add
a migration to the app''s migrations, but that''s nice and explicit the
way we want it to be. The migration looks something like this:
class UpgradeToMarchRelease < ActiveRecord::Migration
def self.up
migrate_engine(''users'', 7)
migrate_engine(''blogs'', 15)
end
def self.down
migrate_engine(''users'', 6)
migrate_engine(''blogs'', 13)...