Sha256: ed497b6b09646e0ae0307ea277a762851da0a51239af1330537dd493676d34e5
Contents?: true
Size: 796 Bytes
Versions: 2
Compression:
Stored size: 796 Bytes
Contents
# MultiTenancyDatabase Allowing multiple databases to connect to the same project and still use ActiveRecord to perform operations on the models ## Installation Add this line to your application's Gemfile: ```ruby gem 'multi_tenancy_database' ``` And then execute: $ bundle Or install it yourself as: $ gem install multi_tenancy_database ## Usage In this example, we’ll have a separate database for our e-commerce school that we’ll call school. ### Add new database multi_tenancy_database -n school -a postgresql ### Create Database rails school:db:create ### Create new model rails g school_model user first_name:string last_name:string ### Add more field to model user rails g school_migration AddPhoneFieldToUser phone:string ### Migrate rails school:db:migrate
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
multi_tenancy_database-0.1.2 | README.md |
multi_tenancy_database-0.1.1 | README.md |