aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/db_definitions
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2005-06-10 14:58:02 +0000
committerJamis Buck <jamis@37signals.com>2005-06-10 14:58:02 +0000
commit2c0fa3208859aed2c1fd0ce54c8d5215d11d0c75 (patch)
treeb65523d2f9c2d0b79bc0b65157e966ee36ebd1a2 /activerecord/test/fixtures/db_definitions
parent7f9ffb2ebf1a0230368f54a6372cb7196c90177e (diff)
downloadrails-2c0fa3208859aed2c1fd0ce54c8d5215d11d0c75.tar.gz
rails-2c0fa3208859aed2c1fd0ce54c8d5215d11d0c75.tar.bz2
rails-2c0fa3208859aed2c1fd0ce54c8d5215d11d0c75.zip
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
Diffstat (limited to 'activerecord/test/fixtures/db_definitions')
-rwxr-xr-xactiverecord/test/fixtures/db_definitions/mysql.sql10
1 files changed, 5 insertions, 5 deletions
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;