lib/penthouse/tenants/octopus_schema_tenant.rb in penthouse-0.2.0 vs lib/penthouse/tenants/octopus_schema_tenant.rb in penthouse-0.3.0
- old
+ new
@@ -21,8 +21,26 @@
def call(&block)
Octopus.using(:master) do
super
end
end
+
+ # creates the tenant schema within the master shard
+ # @see Penthouse::Tenants::SchemaTenant#create
+ def create(*)
+ call { super }
+ end
+
+ # drops the tenant schema within the master shard
+ # @see Penthouse::Tenants::SchemaTenant#delete
+ def delete(*)
+ call { super }
+ end
+
+ # returns whether or not the schema exists
+ # @see Penthouse::Tenants::SchemaTenant#exists?
+ def exists?(*)
+ call { super }
+ end
end
end
end