diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-11-04 19:58:38 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-11-04 19:58:38 +0100 |
commit | 7596cab62fcba5cee242c054bdef134b6bd36872 (patch) | |
tree | 2dccdcde090a429e8046a035864ee41a02efc5a3 /activerecord/test/schema/postgresql_specific_schema.rb | |
parent | 8602fc5e11e9fe11ad9a0e307f0fbb438f84b1cc (diff) | |
parent | 9007b789e197ad0445a03b591f982a44b92f715d (diff) | |
download | rails-7596cab62fcba5cee242c054bdef134b6bd36872.tar.gz rails-7596cab62fcba5cee242c054bdef134b6bd36872.tar.bz2 rails-7596cab62fcba5cee242c054bdef134b6bd36872.zip |
Merge pull request #17443 from tomeara/added_jsonb_to_postgres_database_types
Added SchemaDumper support for tables with jsonb columns
Diffstat (limited to 'activerecord/test/schema/postgresql_specific_schema.rb')
-rw-r--r-- | activerecord/test/schema/postgresql_specific_schema.rb | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/activerecord/test/schema/postgresql_specific_schema.rb b/activerecord/test/schema/postgresql_specific_schema.rb index e9294a11b9..7c3b170c08 100644 --- a/activerecord/test/schema/postgresql_specific_schema.rb +++ b/activerecord/test/schema/postgresql_specific_schema.rb @@ -1,7 +1,9 @@ ActiveRecord::Schema.define do - %w(postgresql_tsvectors postgresql_hstores postgresql_arrays postgresql_moneys postgresql_numbers postgresql_times postgresql_network_addresses 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 postgresql_citext).each do |table_name| + %w(postgresql_tsvectors postgresql_hstores postgresql_arrays postgresql_moneys postgresql_numbers postgresql_times + postgresql_network_addresses postgresql_uuids postgresql_ltrees postgresql_oids postgresql_xml_data_type defaults + geometrics postgresql_timestamp_with_zones postgresql_partitioned_table postgresql_partitioned_table_parent + postgresql_citext).each do |table_name| execute "DROP TABLE IF EXISTS #{quote_table_name table_name}" end @@ -108,15 +110,6 @@ _SQL _SQL end - if 't' == select_value("select 'json'=ANY(select typname from pg_type)") - execute <<_SQL - CREATE TABLE postgresql_json_data_type ( - id SERIAL PRIMARY KEY, - json_data json default '{}'::json - ); -_SQL - end - execute <<_SQL CREATE TABLE postgresql_numbers ( id SERIAL PRIMARY KEY, |