lib/tasks/penthouse.rake in penthouse-0.5.0 vs lib/tasks/penthouse.rake in penthouse-0.6.0

- old
+ new

@@ -4,13 +4,15 @@ desc "Migrate all tenants to latest version" task :migrate do warn_if_tenants_empty + version = ENV['VERSION'] ? ENV['VERSION'].to_i : nil + tenant_identifiers.each do |tenant_identifier| begin puts("Migrating #{tenant_identifier || '***global***'} tenant") - Penthouse::Migrator.migrate(tenant_identifier) + Penthouse::Migrator.migrate(tenant_identifier, version) rescue Penthouse::TenantNotFound => e puts e.message end end end