lib/penthouse/runners/schema_runner.rb in penthouse-0.11.0 vs lib/penthouse/runners/schema_runner.rb in penthouse-0.12.0
- old
+ new
@@ -9,11 +9,11 @@
module Runners
class SchemaRunner < BaseRunner
# @param tenant_identifier [String, Symbol] The identifier for the tenant
# @return [Penthouse::Tenants::BaseTenant] An instance of a tenant
- def self.load_tenant(tenant_identifier)
- Tenants::SchemaTenant.new(tenant_identifier, tenant_schema: tenant_identifier)
+ def load_tenant(tenant_identifier:, previous_tenant_identifier: 'public')
+ Tenants::SchemaTenant.new(identifier: tenant_identifier, tenant_schema: tenant_identifier, previous_schema: previous_tenant_identifier)
end
end
end
end