Method: CouchRest::Upgrade#initialize
- Defined in:
- lib/couchrest/helper/upgrade.rb
#initialize(dbname, old_couch, new_couch) ⇒ Upgrade
Returns a new instance of Upgrade.
4 5 6 7 8 9 |
# File 'lib/couchrest/helper/upgrade.rb', line 4 def initialize dbname, old_couch, new_couch @dbname = dbname @olddb = old_couch.database dbname @newdb = new_couch.database!(dbname) @bulk_docs = [] end |