diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-12-13 14:17:21 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-12-13 14:17:21 +0100 |
commit | c4044b2f8a0a2175012852f8cd2f86de4ab76dc6 (patch) | |
tree | da96b893295351727546aec7ae43eb8f4fb18611 /activerecord/test/schema | |
parent | 7ce846c17784f8fca930c850ab6dae3555b66f8c (diff) | |
download | rails-c4044b2f8a0a2175012852f8cd2f86de4ab76dc6.tar.gz rails-c4044b2f8a0a2175012852f8cd2f86de4ab76dc6.tar.bz2 rails-c4044b2f8a0a2175012852f8cd2f86de4ab76dc6.zip |
extract PG range tests from datatype_test.rb into range_test.rb
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/postgresql_specific_schema.rb | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/activerecord/test/schema/postgresql_specific_schema.rb b/activerecord/test/schema/postgresql_specific_schema.rb index 6b7012a172..a86a188bcf 100644 --- a/activerecord/test/schema/postgresql_specific_schema.rb +++ b/activerecord/test/schema/postgresql_specific_schema.rb @@ -1,6 +1,6 @@ ActiveRecord::Schema.define do - %w(postgresql_ranges postgresql_tsvectors postgresql_hstores postgresql_arrays postgresql_moneys postgresql_numbers postgresql_times postgresql_network_addresses postgresql_bit_strings postgresql_uuids postgresql_ltrees + %w(postgresql_tsvectors postgresql_hstores postgresql_arrays postgresql_moneys postgresql_numbers postgresql_times postgresql_network_addresses postgresql_bit_strings postgresql_uuids postgresql_ltrees postgresql_oids postgresql_xml_data_type defaults geometrics postgresql_timestamp_with_zones postgresql_partitioned_table postgresql_partitioned_table_parent postgresql_json_data_type).each do |table_name| execute "DROP TABLE IF EXISTS #{quote_table_name table_name}" end @@ -74,18 +74,6 @@ _SQL ); _SQL - execute <<_SQL if supports_ranges? - CREATE TABLE postgresql_ranges ( - id SERIAL PRIMARY KEY, - date_range daterange, - num_range numrange, - ts_range tsrange, - tstz_range tstzrange, - int4_range int4range, - int8_range int8range - ); -_SQL - execute <<_SQL CREATE TABLE postgresql_tsvectors ( id SERIAL PRIMARY KEY, @@ -221,4 +209,3 @@ _SQL t.text :text, limit: 100_000 end end - |