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

Fix error on a table that doesn t have the pk #121

Merged
merged 2 commits into from
Apr 14, 2021

Conversation

pocke
Copy link
Owner

@pocke pocke commented Apr 14, 2021

Fix #115

HABTM (has_and_belongs_to_many) table doesn't have PK, but RBS Rails expected that PK exists in all tables. So it raises an error.

By this pull request, it treat PK type as top if PK doesn't exist.


By the way, we still need to generate RBS for HABTM associations, same as has_many. But it is out-of-scope of this pull request.

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

Successfully merging this pull request may close these issues.

HABTM relationship breaks the generator
1 participant