Home RailsAdmin: ActiveRecord::RecordNotUnique , inserts id when creating user #2972
Reply: 0

RailsAdmin: ActiveRecord::RecordNotUnique , inserts id when creating user #2972

user663
1#
user663 Published in May 20, 2018, 10:01 am

I seem to be getting a problem when inserting into the users table. I am not sure why, but only that it is getting the current user's id (confirmed by seeding additional user. 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. I am using MYSQL. 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!

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.303333 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO