Sha256: 3eb9421fda17f784556a633c20e2dc4a09289a20a566062f97b015d6cefbb978
Contents?: true
Size: 855 Bytes
Versions: 2
Compression:
Stored size: 855 Bytes
Contents
# ActiveTenant ActiveRecord extensions for multi tenant applications ## Installation Add this line to your application's Gemfile: gem 'active_tenant' And then execute: $ bundle Or install it yourself as: $ gem install active_tenant ## Usage ActiveRecord::Base.create_tenant 'customer_name' ActiveRecord::Migration.migrate_tenant 'customer_name' # or ActiveRecord::Migration.migrate_all_tenants ActiveRecord::Base.with_tenant 'customer_name' do Porduct.find(1234) end ActiveRecord::Base.remove_tenant 'customer_name' ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Added some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_tenant-0.0.2 | README.md |
active_tenant-0.0.1 | README.md |