Files
sx-fc/app/models/printer
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-06-12 15:16:18 +06:30
2019-06-05 13:52:18 +06:30
2019-06-05 13:52:18 +06:30
2019-11-01 16:28:18 +06:30