[Rails-core] AR Unit Tests
Wilson Bilkovich
wilsonb at gmail.com
Fri Feb 10 14:38:08 GMT 2006
On 2/10/06, Bob Silva <me at bobsilva.com> wrote:
>
> test_lock_column_name_existing(LockingTest):
>
> ActiveRecord::StatementInvalid: Mysql::Error: #42S02Table
> 'activerecord_unittest.legacy_things' doesn't exist: DELETE
> FROM legacy_things
This is a test I wrote. I don't use MySQL, unfortunately, so I can
only hope that I got the definition syntax right. This is what is in
the mysql.sql file.. is this correct?
CREATE TABLE `legacy_things` (
`id` int(11) NOT NULL auto_increment,
`tps_report_number` int(11) default NULL,
`version` int(11) NOT NULL default 0,
PRIMARY KEY (`id`)
) TYPE=InnoDB;
More information about the Rails-core
mailing list