Method: Mongo::Migration#current_version
- Defined in:
- lib/mongo/migration/migration.rb
#current_version ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/mongo/migration/migration.rb', line 29 def current_version if doc = db..first(name: 'migration') doc[:version] || doc['version'] else 0 end end |