Sha256: 0c828ca74b77dacbfb12bc2bc638f1d2ac370a82ddcb2a602346147e5862b0ad

Contents?: true

Size: 257 Bytes

Versions: 6

Compression:

Stored size: 257 Bytes

Contents

class Tenant < ActiveRecord::Base
  # load tenanted schema.rb file to provision new tenant
  after_create :load_schema

  # tell roomer if this is a shared model
  roomer :shared

  protected
  def load_schema
    Roomer::Schema.load(schema_name)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
roomer-1.0.1 test/rails_app/app/models/tenant.rb
roomer-1.0.0 test/rails_app/app/models/tenant.rb
roomer-0.0.11 test/rails_app/app/models/tenant.rb
roomer-0.0.10 test/rails_app/app/models/tenant.rb
roomer-0.0.9 test/rails_app/app/models/tenant.rb
roomer-0.0.8 test/rails_app/app/models/tenant.rb