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

rails 4 has_and_belongs_to_many not showing up correctly in models diagram #70

Open
dstull opened this issue Jul 21, 2014 · 0 comments
Open

Comments

@dstull
Copy link

dstull commented Jul 21, 2014

see app model:
class App < ActiveRecord::Base
has_and_belongs_to_many :gateways

see gateway model:
class Gateway < ActiveRecord::Base
has_and_belongs_to_many :apps

in between these 2 models is a join table 'apps_gateways' with no ID

on the diagram the apps_gateways shows up as 2 models/tables

  1. for app association shows 'AppsGateway' with an app has many relationship to it
  2. for gateway association shows 'GatewaysApp' with a gateway has many relationship to it

the join table should show up between the 2 models instead...only once!

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

1 participant