aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-04-07 06:20:54 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-04-07 06:20:54 +0000
commitbd9a81ca2d34562a140dfe9a6cfecf969a01042c (patch)
tree966266871e2714aef19a4ebab8f639f5f6421a01 /activerecord
parent38a0b5b427371b53c0d0f159cf5b3806f16aab30 (diff)
downloadrails-bd9a81ca2d34562a140dfe9a6cfecf969a01042c.tar.gz
rails-bd9a81ca2d34562a140dfe9a6cfecf969a01042c.tar.bz2
rails-bd9a81ca2d34562a140dfe9a6cfecf969a01042c.zip
Moved to new server
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1102 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/fixtures/db_definitions/mysql.drop.sql3
-rwxr-xr-xactiverecord/test/fixtures/db_definitions/mysql.sql18
2 files changed, 21 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/db_definitions/mysql.drop.sql b/activerecord/test/fixtures/db_definitions/mysql.drop.sql
index 1f611c8d5a..99b391ea16 100644
--- a/activerecord/test/fixtures/db_definitions/mysql.drop.sql
+++ b/activerecord/test/fixtures/db_definitions/mysql.drop.sql
@@ -15,4 +15,7 @@ DROP TABLE mixins;
DROP TABLE people;
DROP TABLE binaries;
DROP TABLE computers;
+DROP TABLE posts;
+DROP TABLE comments;
+DROP TABLE authors;
diff --git a/activerecord/test/fixtures/db_definitions/mysql.sql b/activerecord/test/fixtures/db_definitions/mysql.sql
index ca61159b74..8c919ff4ca 100755
--- a/activerecord/test/fixtures/db_definitions/mysql.sql
+++ b/activerecord/test/fixtures/db_definitions/mysql.sql
@@ -129,3 +129,21 @@ CREATE TABLE `computers` (
`developer` INTEGER NOT NULL
) TYPE=InnoDB;
+CREATE TABLE `posts` (
+ `id` INTEGER NOT NULL PRIMARY KEY,
+ `author_id` INTEGER NOT NULL,
+ `title` VARCHAR(255) NOT NULL,
+ `body` TEXT NOT NULL
+) TYPE=InnoDB;
+
+CREATE TABLE `comments` (
+ `id` INTEGER NOT NULL PRIMARY KEY,
+ `post_id` INTEGER NOT NULL,
+ `body` TEXT NOT NULL
+) TYPE=InnoDB;
+
+CREATE TABLE `authors` (
+ `id` INTEGER NOT NULL PRIMARY KEY,
+ `name` VARCHAR(255) NOT NULL
+) TYPE=InnoDB;
+