[Rails-core] AR Unit Tests

Jakob Skjerning jakob at mentalized.net
Fri Feb 10 14:58:19 GMT 2006


Wilson Bilkovich wrote:
> 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?

Sure is:

mysql> 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;
Query OK, 0 rows affected, 1 warning (0.07 sec)


-- 
Jakob Skjerning - http://mentalized.net


More information about the Rails-core mailing list