-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Can only register models that have a primary key named "id" #23
Comments
We indeed built it assuming that pks are name I won't have time to work on this in the next days/weeks, but I'd be happy to accept a Pull Request with those changes if you want to work on it. Let me know if you have any questions. |
I would suggest to add more dynamic stuffs, instead of lots of hardcoding, proxy method modules can come forward to sole those. And registry entry should contain more configuration options. There are also no options to handle different different table types other then primary tables. Example, a table without id or secondary table a joining tables etc. I have a plan to make a pull request tonight to solve this issue with more options to handle exceptional cases. |
@rubyrider Thanks for your suggestions. Is that something that you've been working on? As mentioned in my first comment, I won't have time to work on this, but I would be happy to accept a PR solving this issue. |
@pjambet if you want I can create a pr! I have solved this issue a long ago using a patch on that time. |
Definitely! I would love to have a feature like that merged upstream. Sorry again for not replying earlier. |
its okey! :) I will send pr as soon as I get free time! On Tue, Dec 1, 2015 at 12:16 AM, Pierre [email protected] wrote:
Regards, |
@rubyrider Awesome, thanks! |
okey, I will do! |
#80 might partially address this issue, as it doesn't require an |
Does any model registered for inclusion in the generated seeds file have to have a primary key named "id"? I was wondering if there was a way to configure the name of the PK for each model registered in the seed_migration.rb initializer. Or would this be a new feature that needed to be developed?
The text was updated successfully, but these errors were encountered: