I tried to google hardcore to get what creates this problem, but nothing helped me, so i'm triing to write here!
while doing: User.create(:name => "daniel") or User.new(:name => 'daniel').save in the rails console, i get this error
ActiveRecord::StatementInvalid: Mysql::Error: Duplicate entry '5' for key 1: INSERT INTO users (name, salt, privilegi, confirmed_mail, avatar_id, id, password, session_num, email) VALUES('daniel', '23404', NULL, NULL, NULL, 5, NULL, NULL, NULL)
this is my SQL table- id row for "user"
| id | int(11) | NO | PRI | NULL | auto_increment | It is on autoincrement, and i'm sure there is no other entry with id 5!
what is happening??