Switch from Milia to Apartment - keep data?

162 Views Asked by At

We have a product that has been built using the milia multi-tenanting gem (https://github.com/jekuno/milia) . Unfortunately it seems this gem is dead. We can't upgrade past Rails 5 because of this.

Is there any way to move from milia to another gem (eg apartment https://github.com/influitive/apartment - though I see that hasn't been updated in 2 years either!) and not force everyone to recreate passwords etc?

2

There are 2 best solutions below

1
phil On

I ended up modifying Milia to work with Rails 6. That new gem is called Philia

0
Bidan On

Had the same issue trying gem milia had to use acts_as_tenant- which is well upto date and supports rails 5.2 upwards and its syntax close to gem 'acts_as_tenant' https://github.com/ErwinM/acts_as_tenant