Sha256: e350f5e3d5efdfecbf1d0c8a6541fc30ac92f1554101f4dae79b1bb0e4d2a9ac
Contents?: true
Size: 949 Bytes
Versions: 1
Compression:
Stored size: 949 Bytes
Contents
# ActiveTenant [![Build Status](https://travis-ci.org/gabynaiman/active_tenant.png?branch=master)](https://travis-ci.org/gabynaiman/active_tenant) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_tenant-0.0.3 | README.md |