aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema/postgresql_specific_schema.rb
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2013-01-24 00:16:01 +0000
committerAndrew White <andyw@pixeltrix.co.uk>2013-01-24 00:16:01 +0000
commitc5989cc4837b5f814e14332a0b90a44dfa806b4e (patch)
tree9201cf1fa1f2a656c08a499ecb72e6ad7abea103 /activerecord/test/schema/postgresql_specific_schema.rb
parent8ac94d7c8938649984c683a51ee54589ee338166 (diff)
downloadrails-c5989cc4837b5f814e14332a0b90a44dfa806b4e.tar.gz
rails-c5989cc4837b5f814e14332a0b90a44dfa806b4e.tar.bz2
rails-c5989cc4837b5f814e14332a0b90a44dfa806b4e.zip
Fix PostgreSQL tests on Travis
Travis only has PostgreSQL 9.1.x but 9.2 is required for range datatypes.
Diffstat (limited to 'activerecord/test/schema/postgresql_specific_schema.rb')
-rw-r--r--activerecord/test/schema/postgresql_specific_schema.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/schema/postgresql_specific_schema.rb b/activerecord/test/schema/postgresql_specific_schema.rb
index bf6f1ca191..83b50030bd 100644
--- a/activerecord/test/schema/postgresql_specific_schema.rb
+++ b/activerecord/test/schema/postgresql_specific_schema.rb
@@ -73,7 +73,7 @@ _SQL
);
_SQL
- execute <<_SQL
+ execute <<_SQL if supports_ranges?
CREATE TABLE postgresql_ranges (
id SERIAL PRIMARY KEY,
date_range daterange,