lib/mongo_mapper_ext/migration.rb in rails-ext-0.2.20 vs lib/mongo_mapper_ext/migration.rb in rails-ext-0.2.21

- old
+ new

@@ -32,14 +32,14 @@ def update database_alias, version database_alias = database_alias.to_s db = MongoMapper.databases[database_alias] if metadata(db).version == version - puts.info "Database '#{database_alias}' already is of #{version} version, no migration needed." + puts "Database '#{database_alias}' already is of #{version} version, no migration needed." return false else - puts.info "Migration for '#{database_alias}' Database:" + puts "Migration for '#{database_alias}' Database:" end increase_db_version database_alias, db while metadata(db).version < version decrease_db_version database_alias, db while metadata(db).version > version true @@ -63,11 +63,11 @@ migration.up.call db m.version += 1 update_metadata db, m - puts.info "Database '#{database_alias}' upgraded to version #{m.version}." + puts "Database '#{database_alias}' upgraded to version #{m.version}." end def decrease_db_version database_alias, db m = metadata(db) migration = definitions[database_alias][m.version] @@ -76,10 +76,10 @@ migration.down.call db m.version -= 1 update_metadata db, m - puts.info "Database '#{database_alias}' downgraded to version #{m.version}." + puts "Database '#{database_alias}' downgraded to version #{m.version}." end def update_metadata db, metadata col = db.collection 'db_metadata' \ No newline at end of file