milia icon indicating copy to clipboard operation
milia copied to clipboard

Generator creating references which should be deleted?

Open rmindigo opened this issue 6 years ago • 1 comments

README suggests the following:

"Clean up tenant references Clean up any generated belongs_to tenant references in all models which the generator might have generated (both acts_as_tenant and acts_as_universal)."

In my member.rb Model, generator created belongs_to :user and acts_as_tenant.

Question: Do I need to delete both these (belongs_to :user and acts_as_tenant) from my member.rb model? Want to be 100% sure to avoid big issues down the road! Also, if need to be deleted, why did Generator create them in the first place? Thanks!

rmindigo avatar Oct 18 '18 17:10 rmindigo

Member.rb must have both lines:

acts_as_tenant
 belongs_to :user

the readme means that in every tenant-specific model, instead of having belongs_to :tenantyou must have the line acts_as_tenant

yshmarov avatar Jun 29 '19 08:06 yshmarov