Open djvs opened 8 years ago
The generated models do not support composite primary keys. Not sure if bug report or feature request really. I got around it by using this gem:
https://github.com/composite-primary-keys/composite_primary_keys
and manually editing the produced results. This was an issue quickly with a data set I was working with.
You may want to at least produce a warning and ask the user how to proceed when generating models?
It would be good if you can implement this and create pull request.
The generated models do not support composite primary keys. Not sure if bug report or feature request really. I got around it by using this gem:
https://github.com/composite-primary-keys/composite_primary_keys
and manually editing the produced results. This was an issue quickly with a data set I was working with.
You may want to at least produce a warning and ask the user how to proceed when generating models?