aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/db_definitions/postgresql.sql
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2005-08-23 11:05:04 +0000
committerJamis Buck <jamis@37signals.com>2005-08-23 11:05:04 +0000
commitdfe1aeb776ed9a7da8b431c7933c858d155a13c7 (patch)
tree11593565c25ad674b9fbaf7d9d17e313f0c4198c /activerecord/test/fixtures/db_definitions/postgresql.sql
parent211617191ed9e6bc9da1cee1bdd134c9b8c3cdfd (diff)
downloadrails-dfe1aeb776ed9a7da8b431c7933c858d155a13c7.tar.gz
rails-dfe1aeb776ed9a7da8b431c7933c858d155a13c7.tar.bz2
rails-dfe1aeb776ed9a7da8b431c7933c858d155a13c7.zip
Saving a record with two unsaved belongs_to associations pointing to the same object fails #2023 [Tobias Luetke]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2040 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/db_definitions/postgresql.sql')
-rw-r--r--activerecord/test/fixtures/db_definitions/postgresql.sql9
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/db_definitions/postgresql.sql b/activerecord/test/fixtures/db_definitions/postgresql.sql
index 9d2e50132a..21ca82a4ab 100644
--- a/activerecord/test/fixtures/db_definitions/postgresql.sql
+++ b/activerecord/test/fixtures/db_definitions/postgresql.sql
@@ -72,6 +72,15 @@ CREATE TABLE customers (
);
SELECT setval('customers_id_seq', 100);
+CREATE TABLE orders (
+ id serial,
+ name character varying,
+ billing_customer_id integer,
+ shipping_customer_id integer,
+ PRIMARY KEY (id)
+);
+SELECT setval('orders_id_seq', 100);
+
CREATE TABLE movies (
movieid serial,
name text,