11 Commits

Author SHA1 Message Date
Thein Lin Kyaw
937f40e7c1 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 details: https://github.com/ErwinM/acts_as_tenant
2019-12-02 17:19:28 +06:30
phyusin
2d36221c33 change consolidate receipt rake file 2018-11-16 17:11:21 +06:30
phyusin
01473bffbd consolidate receipt data 2018-11-16 16:30:18 +06:30
Aung Myo
87502ec0f2 update inventory and shop and seed 2018-10-09 16:12:52 +06:30
Aung Myo
cc89a35ece update rake receipt 2018-04-22 10:45:29 +06:30
Aung Myo
ba1b7a1d9c update receipt rake 2018-04-20 18:11:32 +06:30
Aung Myo
97ec370a8f update order and reserve and receipt rake 2018-04-20 17:03:18 +06:30
Aung Myo
652251f243 update rake file 2018-04-19 15:00:48 +06:30
Aung Myo
635db2e011 update rake receipt file 2018-04-19 13:59:50 +06:30
Aung Myo
3de5c173b5 update remove sidekiq 2018-03-08 18:08:36 +06:30
Aung Myo
3fcdbfb8df update receipt ranke file 2018-03-08 15:30:18 +06:30