Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generator creating references which should be deleted? #86

Open
rmindigo opened this issue Oct 18, 2018 · 1 comment
Open

Generator creating references which should be deleted? #86

rmindigo opened this issue Oct 18, 2018 · 1 comment

Comments

@rmindigo
Copy link

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!

@yshmarov
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants