starterkits / rails4-starterkit

Rails 4.1 starter app with production ready performance, security, and authentication.
MIT License
388 stars 103 forks source link

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

Open applecrusher opened 6 years ago

applecrusher commented 6 years ago

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!