Files
sx-fc/app/controllers/api
Thein Lin Kyaw 1607cb70d3 Single database for multiple shops
Use ActsAsTenant as Multi-tenancy for shops

See below files:
- app/controllers/concern/multi_tenancy.rb
- app/models/application_record.rb
- app/models/shop.rb

An initializer can be created to control option in ActsAsTenant.

config/initializers/acts_as_tenant.rb
require 'acts_as_tenant/sidekiq'

ActsAsTenant.configure do |config|
  config.require_tenant = false # true
end

more detail: https://github.com/ErwinM/acts_as_tenant
2019-12-02 18:02:39 +06:30
..
2019-11-13 13:34:11 +06:30
2018-11-16 14:51:40 +06:30
2018-04-09 10:53:16 +06:30
2017-10-23 11:38:10 +06:30
2017-10-23 11:38:10 +06:30
2017-10-23 11:38:10 +06:30
2017-10-23 11:38:10 +06:30
2017-10-23 11:38:10 +06:30
2019-06-20 15:07:18 +06:30
2017-10-23 11:38:10 +06:30
2018-10-19 10:52:27 +06:30
2018-06-19 14:03:24 +06:30
2019-06-21 10:04:35 +06:30