Sha256: c8941f73ceb627c8d1de97c9580fb35aa856d0cd99be1e2a4a355d0708c0b440
Contents?: true
Size: 656 Bytes
Versions: 3
Compression:
Stored size: 656 Bytes
Contents
# encoding: UTF-8 ActiveRecord::Schema.define(version: 0) do create_table(:organizations, force: true) create_table(:items, force: true) do |t| t.integer :organization_id end create_table(:external_items, force: true) do |t| t.integer :external_organization_id end end class Organization < ActiveRecord::Base include RailsMultitenant::GlobalContextRegistry::CurrentInstance end class Item < ActiveRecord::Base include RailsMultitenant::MultitenantModel multitenant_on_model :organization end class ExternalItem < ActiveRecord::Base include RailsMultitenant::MultitenantModel multitenant_on :external_organization_id end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rails_multitenant-0.3.1 | spec/db/schema.rb |
rails_multitenant-0.3.0 | spec/db/schema.rb |
rails_multitenant-0.2.0 | spec/db/schema.rb |