From 2c0fa3208859aed2c1fd0ce54c8d5215d11d0c75 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Fri, 10 Jun 2005 14:58:02 +0000 Subject: Do not use instantiated fixtures (in general) in tests. Also, support the use of transactional fixtures by setting the AR_TX_FIXTURES environment variable to "yes". git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1399 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/db_definitions/mysql.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'activerecord/test/fixtures/db_definitions') diff --git a/activerecord/test/fixtures/db_definitions/mysql.sql b/activerecord/test/fixtures/db_definitions/mysql.sql index d105090355..5a24ea3768 100755 --- a/activerecord/test/fixtures/db_definitions/mysql.sql +++ b/activerecord/test/fixtures/db_definitions/mysql.sql @@ -155,26 +155,26 @@ CREATE TABLE `tasks` ( `starting` datetime NOT NULL default '0000-00-00 00:00:00', `ending` datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (`id`) -); +) TYPE=InnoDB; CREATE TABLE `categories` ( `id` int(11) NOT NULL auto_increment, `name` VARCHAR(255) NOT NULL, PRIMARY KEY (`id`) -); +) TYPE=InnoDB; CREATE TABLE `categories_posts` ( `category_id` int(11) NOT NULL, `post_id` int(11) NOT NULL -); +) TYPE=InnoDB; CREATE TABLE `fk_test_has_pk` ( `id` INTEGER NOT NULL PRIMARY KEY -); +) TYPE=InnoDB; CREATE TABLE `fk_test_has_fk` ( `id` INTEGER NOT NULL PRIMARY KEY, `fk_id` INTEGER NOT NULL, FOREIGN KEY (`fk_id`) REFERENCES `fk_test_has_pk`(`id`) -); +) TYPE=InnoDB; -- cgit v1.2.3