You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues and didn't find my feature already requested there
Feature description
Most of the tables I am working with come from ActiveRecord where the relationship names are pluralized. In the current implementation a plural_noun of the already plural name like users ends up with a name like userss instead of users.
The easy fix is to first convert it to a singular name then pluralize like:
Things to check first
Feature description
Most of the tables I am working with come from ActiveRecord where the relationship names are pluralized. In the current implementation a plural_noun of the already plural name like
users
ends up with a name likeuserss
instead ofusers
.The easy fix is to first convert it to a singular name then pluralize like:
This came from around line 1000 in the generators.py
An option for "singularize" or perhaps to not use inflect on relationship names could work too. In my case first converting to singular worked well.
Use case
When you are generating models from ActiveRecord implementations.
The text was updated successfully, but these errors were encountered: