From fdd268138a062b45aa126c21ee3d5579f01c3f2e Mon Sep 17 00:00:00 2001
From: David Heinemeier Hansson <david@loudthinking.com>
Date: Sun, 10 Apr 2005 15:49:49 +0000
Subject: 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
---
 .../test/fixtures/db_definitions/sqlserver.sql       | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

(limited to 'activerecord/test/fixtures/db_definitions/sqlserver.sql')

diff --git a/activerecord/test/fixtures/db_definitions/sqlserver.sql b/activerecord/test/fixtures/db_definitions/sqlserver.sql
index de746efb57..8e0d78bb61 100644
--- a/activerecord/test/fixtures/db_definitions/sqlserver.sql
+++ b/activerecord/test/fixtures/db_definitions/sqlserver.sql
@@ -116,6 +116,26 @@ CREATE TABLE computers (
   developer int NOT NULL
 );
 
+CREATE TABLE posts (
+  id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
+  author_id int default NULL,
+  title varchar(255) default NULL,
+  type varchar(255) default NULL,
+  body text default NULL
+);
+
+CREATE TABLE comments (
+  id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
+  post_id int default NULL,
+  type varchar(255) default NULL,
+  body text default NULL
+);
+
+CREATE TABLE authors (
+  id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
+  name varchar(255) default NULL
+);
+
 CREATE TABLE tasks (
   id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
   starting datetime default NULL,
-- 
cgit v1.2.3

