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

ActiveRecord::RecordNotUnique , inserts id when creating user #52

Open
applecrusher opened this issue Dec 29, 2017 · 0 comments
Open

ActiveRecord::RecordNotUnique , inserts id when creating user #52

applecrusher opened this issue Dec 29, 2017 · 0 comments

Comments

@applecrusher
Copy link

Hello All,

I seem to be getting a problem when inserting into the users table. I am not sure why. I know the solution would be to remove adding the id when adding users, but I don't know how and have been trying to find the right file for 30 minutes. The error is below

ActiveRecord::RecordNotUnique in RailsAdmin::MainController#new
Mysql2::Error: Duplicate entry '1' for key 'PRIMARY': INSERT INTO `users`

Any possible solution to this? I am willing to fix if someone just points me to the right file(s). Thanks!

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