lib/penthouse/tenants/octopus_schema_tenant.rb in penthouse-0.3.0 vs lib/penthouse/tenants/octopus_schema_tenant.rb in penthouse-0.4.0
- old
+ new
@@ -16,29 +16,33 @@
# ensures we're on the master Octopus shard, just updates the schema name
# with the tenant name
# @param block [Block] The code to execute within the schema
# @yield [SchemaTenant] The current tenant instance
+ # @return [void]
def call(&block)
Octopus.using(:master) do
super
end
end
# creates the tenant schema within the master shard
# @see Penthouse::Tenants::SchemaTenant#create
+ # @return [void]
def create(*)
call { super }
end
# drops the tenant schema within the master shard
# @see Penthouse::Tenants::SchemaTenant#delete
+ # @return [void]
def delete(*)
call { super }
end
# returns whether or not the schema exists
# @see Penthouse::Tenants::SchemaTenant#exists?
+ # @return [Boolean] whether or not the schema exists in the master shard
def exists?(*)
call { super }
end
end
end