Class: CouchMigrate::CouchPersistedList
- Inherits:
-
BasePersistedList
- Object
- BasePersistedList
- CouchMigrate::CouchPersistedList
- Defined in:
- lib/couch_migrate/couch_persisted_list.rb
Constant Summary collapse
- DocName =
'migrations'- MigrationField =
'completed'
Instance Method Summary collapse
-
#initialize(database) ⇒ CouchPersistedList
constructor
A new instance of CouchPersistedList.
Methods inherited from BasePersistedList
#add, #get, #remove, #reset, #set
Constructor Details
#initialize(database) ⇒ CouchPersistedList
Returns a new instance of CouchPersistedList.
9 10 11 12 13 14 |
# File 'lib/couch_migrate/couch_persisted_list.rb', line 9 def initialize(database) @db = CouchRest.database!(database) # find or create raise "db cannot be created using url #{database}" if @db.nil? super() self end |