Multitenancy with Rails

Multitenancy with rails. DB per tenant/subdomain enter image description here enter image description here enter image description here

$ git clone [repo]
$ cd Multitenancy_rails
$ bundle
$ rake db:create
$ rake db:migrate
$ rake s
http://lvh.me:3000/users
http://[createdUser].lvh.me:3000/projects
http://[createdUser2].lvh.me:3000/projects