lib/penthouse/migrator.rb in penthouse-0.7.4 vs lib/penthouse/migrator.rb in penthouse-0.7.5
- old
+ new
@@ -49,17 +49,12 @@
return migrate_without_penthouse(migrations_paths, target_version, &block)
end
Penthouse.each_tenant(tenant_identifiers: tenants_to_migrate) do |tenant|
puts "Migrating #{tenant.identifier}"
- if defined?(:migrate_without_octopus)
- puts "calling #migrate_without_octopus"
- migrate_without_octopus(migrations_paths, target_version, &block)
- else
- puts "calling #migrate_without_penthouse"
- migrate_without_penthouse(migrations_paths, target_version, &block)
- end
+ puts "calling #migrate_without_penthouse"
+ migrate_without_penthouse(migrations_paths, target_version, &block)
end
end
def up_with_penthouse(migrations_paths, target_version = nil, &block)
puts "#up_with_penthouse called"
@@ -69,17 +64,12 @@
return up_without_penthouse(migrations_paths, target_version, &block)
end
Penthouse.each_tenant(tenant_identifiers: tenants_to_migrate) do |tenant|
puts "Migrating #{tenant.identifier}"
- if defined?(:up_without_octopus)
- puts "calling #up_without_octopus"
- up_without_octopus(migrations_paths, target_version, &block)
- else
- puts "calling #up_without_penthouse"
- up_without_penthouse(migrations_paths, target_version, &block)
- end
+ puts "calling #up_without_penthouse"
+ up_without_penthouse(migrations_paths, target_version, &block)
end
end
def down_with_penthouse(migrations_paths, target_version = nil, &block)
puts "#down_with_penthouse called"
@@ -89,17 +79,12 @@
return down_without_penthouse(migrations_paths, target_version, &block)
end
Penthouse.each_tenant(tenant_identifiers: tenants_to_migrate) do |tenant|
puts "Migrating #{tenant.identifier}"
- if defined?(:down_without_octopus)
- puts "calling #down_without_octopus"
- down_without_octopus(migrations_paths, target_version, &block)
- else
- puts "calling #down_without_penthouse"
- down_without_penthouse(migrations_paths, target_version, &block)
- end
+ puts "calling #down_without_penthouse"
+ down_without_penthouse(migrations_paths, target_version, &block)
end
end
def run_with_penthouse(direction, migrations_paths, target_version)
puts "#run_with_penthouse called"
@@ -109,16 +94,11 @@
return run_without_penthouse(direction, migrations_paths, target_version)
end
Penthouse.each_tenant(tenant_identifiers: tenants_to_migrate) do |tenant|
puts "Migrating #{tenant.identifier}"
- if defined?(:run_without_octopus)
- puts "calling #run_without_octopus"
- run_without_octopus(direction, migrations_paths, target_version)
- else
- puts "calling #run_without_penthouse"
- run_without_penthouse(direction, migrations_paths, target_version)
- end
+ puts "calling #run_without_penthouse"
+ run_without_penthouse(direction, migrations_paths, target_version)
end
end
def tenants_to_migrate
return @tenants_to_migrate if defined?(@tenants_to_migrate)