lib/fulmar/domain/task/database_sync.rake in fulmar-1.8.6 vs lib/fulmar/domain/task/database_sync.rake in fulmar-1.8.7
- old
+ new
@@ -28,12 +28,11 @@
def name(env, target, counts)
counts[env] > 1 ? "#{env}:#{target}" : env
end
def create_update_tasks(db_configs)
- counts = {}
+ counts = Hash.new(0)
db_configs.each do |config|
- counts[config.first] = 0 unless counts[config.first]
counts[config.first] += 1
end
namespace :update do
db_configs.each do |from_db|