class CouchMigrate::CouchMigrater
Public Class Methods
new(database, migration_directory="db/migrate")
click to toggle source
Calls superclass method
CouchMigrate::BaseMigrater::new
# File lib/couch_migrate/couch_migrater.rb, line 7 def initialize(database, migration_directory="db/migrate") persisted_list = CouchPersistedList.new(database) executer = CouchExecuter super(persisted_list, executer, migration_directory) self end
Public Instance Methods
migrate(*args)
click to toggle source
Calls superclass method
CouchMigrate::BaseMigrater#migrate
# File lib/couch_migrate/couch_migrater.rb, line 14 def migrate(*args) if defined?( CouchRest::Model::Base) orig_auto_update_design_doc = CouchRest::Model::Base.auto_update_design_doc CouchRest::Model::Base.auto_update_design_doc = false end begin super ensure if defined?(CouchRest::Model::Base) CouchRest::Model::Base.auto_update_design_doc = orig_auto_update_design_doc end end end