Sha256: 4ec69bf1ee92248abba2e4354b440531171c79b5ebbe4026a69667f3bc8704f0
Contents?: true
Size: 478 Bytes
Versions: 1
Compression:
Stored size: 478 Bytes
Contents
# encoding: UTF-8 ActiveRecord::Schema.define(:version => 0) do create_table(:organizations, force: true) do |t| t.string :name end create_table(:items, force: true) do |t| t.string :name t.integer :organization_id end end class Organization < ActiveRecord::Base include RailsMultitenant::GlobalContextRegistry::CurrentInstance end class Item < ActiveRecord::Base include RailsMultitenant::MultitenantModel multitenant_model_on :organization end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_multitenant-0.1.0 | spec/db/schema.rb |