diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-10 15:49:49 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-10 15:49:49 +0000 |
commit | fdd268138a062b45aa126c21ee3d5579f01c3f2e (patch) | |
tree | 28c593bd479bb8be02e4b028a8c0e1bc4fe638dd /activerecord/test/fixtures/db_definitions/db2.sql | |
parent | 2119e0699a182575349b1c3a311b182e171e097c (diff) | |
download | rails-fdd268138a062b45aa126c21ee3d5579f01c3f2e.tar.gz rails-fdd268138a062b45aa126c21ee3d5579f01c3f2e.tar.bz2 rails-fdd268138a062b45aa126c21ee3d5579f01c3f2e.zip |
Made eager loading work with inheritance hierarchies #1065 [Ryan Carver]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1131 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/db_definitions/db2.sql')
-rw-r--r-- | activerecord/test/fixtures/db_definitions/db2.sql | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/db_definitions/db2.sql b/activerecord/test/fixtures/db_definitions/db2.sql index 856847e500..a24318bf4b 100644 --- a/activerecord/test/fixtures/db_definitions/db2.sql +++ b/activerecord/test/fixtures/db_definitions/db2.sql @@ -129,6 +129,26 @@ CREATE TABLE computers ( developer int NOT NULL ); +CREATE TABLE posts ( + id int generated by default as identity (start with +10000), + author_id int default NULL, + title varchar(255) default NULL, + type varchar(255) default NULL, + body varchar(3000) default NULL +); + +CREATE TABLE comments ( + id int generated by default as identity (start with +10000), + post_id int default NULL, + type varchar(255) default NULL, + body varchar(3000) default NULL +); + +CREATE TABLE authors ( + id int generated by default as identity (start with +10000), + name varchar(255) default NULL +); + CREATE TABLE tasks ( id int generated by default as identity (start with +10000), starting timestamp default NULL, |