# File lib/couchrest/model/utils/migrate.rb, line 90 def migrate_design(model, design, db = nil) print "Migrating #{model.to_s}##{design.method_name}" print " on #{db.name}" if db print "... " callback = design.migrate(db) do |result| puts "#{result.to_s.gsub(/_/, ' ')}" end # Return the callback hash if there is one callback ? {:design => design, :proc => callback, :db => db || model.database} : nil end