Articles tagged 'Multi Tenancy
Rails | Apartment Gem | Resets Ar Objects When Tenant Switched
Shiva Bhusal (Software Engineer) 1 Min. Read Dec 5, 2018
Problem Rails Ruby JS Apartment Multi Tenancy PG Postgresql schema
I ran into a weird situation today. Active Record objects stored in vars are removed when I switched from one tenant to another on the fly. This will create a weird test-failing scenario and you never know why its happening. def switch(name) yield(name) end @customers = [1,2,3] switch(‘shiva’) do |name| puts name puts @customers end […]
Read More..
You might also like
Rails | Apartment Gem | Resets Ar Objects When Tenant Switched
Shiva Bhusal (Software Engineer) 1 Min. Read Dec 5, 2018
Problem Rails Ruby JS Apartment Multi Tenancy PG Postgresql schema
I ran into a weird situation today. Active Record objects stored in vars are removed when I switched from one tenant to another on the fly. This will create a weird test-failing scenario and you never know why its happening. def switch(name) yield(name) end @customers = [1,2,3] switch(‘shiva’) do |name| puts name puts @customers end […]
Read More..