Forum: Ruby on Rails rake errors

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
7ccb60b4e98db8841edc106c8dbf2789?d=identicon&s=25 Armitage (Guest)
on 2007-02-27 11:08
(Received via mailing list)
Hi All

Still a total novice to rails but I feel I am beginning to make some
I have built a few sections of my app and thought that I would run
'rake' to see if there were any major issues.

Now as I understand it this just runs the most basic test possible -
untill I define some (which I havent yet)

running rake returned a whole bunch of errors (8 in all) the bulk of
which take the form of:

 1) Error:
ActiveRecord::StatementInvalid: Mysql::Error: Duplicate entry '' for
key 2: INSERT INTO patients (`id`) VALUES (1)

And I have an auto-incrementing primary key defiined

Help would be gratefully recieved!
This topic is locked and can not be replied to.