From e30699f66034405de0eaaad12066c2c7d266762f Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Sun, 9 Oct 2005 00:52:25 +0000 Subject: Add geometric type for postgresql adapter. Closes #2233. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2498 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/db_definitions/postgresql.drop.sql | 1 + activerecord/test/fixtures/db_definitions/postgresql.sql | 11 +++++++++++ 2 files changed, 12 insertions(+) (limited to 'activerecord/test/fixtures') diff --git a/activerecord/test/fixtures/db_definitions/postgresql.drop.sql b/activerecord/test/fixtures/db_definitions/postgresql.drop.sql index b94343dc93..3a883e973f 100644 --- a/activerecord/test/fixtures/db_definitions/postgresql.drop.sql +++ b/activerecord/test/fixtures/db_definitions/postgresql.drop.sql @@ -25,3 +25,4 @@ DROP TABLE categories_posts; DROP TABLE defaults; DROP TABLE fk_test_has_fk; DROP TABLE fk_test_has_pk; +DROP TABLE geometrics; diff --git a/activerecord/test/fixtures/db_definitions/postgresql.sql b/activerecord/test/fixtures/db_definitions/postgresql.sql index 3b49c2c5f4..89cc89ab78 100644 --- a/activerecord/test/fixtures/db_definitions/postgresql.sql +++ b/activerecord/test/fixtures/db_definitions/postgresql.sql @@ -207,3 +207,14 @@ CREATE TABLE fk_test_has_fk ( id INTEGER NOT NULL PRIMARY KEY, fk_id INTEGER NOT NULL REFERENCES fk_test_has_fk(id) ); + +CREATE TABLE geometrics ( + id serial primary key, + a_point point, + -- a_line line, (the line type is currently not implemented in postgresql) + a_line_segment lseg, + a_box box, + a_path path, + a_polygon polygon, + a_circle circle +); -- cgit v1.2.3