diff options
author | Jamis Buck <jamis@37signals.com> | 2005-06-10 14:58:02 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-06-10 14:58:02 +0000 |
commit | 2c0fa3208859aed2c1fd0ce54c8d5215d11d0c75 (patch) | |
tree | b65523d2f9c2d0b79bc0b65157e966ee36ebd1a2 /activerecord/test/fixtures/db_definitions/mysql.sql | |
parent | 7f9ffb2ebf1a0230368f54a6372cb7196c90177e (diff) | |
download | rails-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/mysql.sql')
-rwxr-xr-x | activerecord/test/fixtures/db_definitions/mysql.sql | 10 |
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; |