aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/schema_dumper_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-02-10 10:55:34 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-02-10 10:55:34 -0800
commitf7b915b50718c86d3644941cd0bbe7df08888a5b (patch)
tree694847bdcdf374afc65eec9a81aa76fa63855ccf /activerecord/test/cases/schema_dumper_test.rb
parent522b72fd28b898c914cfbdbc31837e56702f60d5 (diff)
parent2dd0178229ccd5e7f19f120ded85fd4a80306cac (diff)
downloadrails-f7b915b50718c86d3644941cd0bbe7df08888a5b.tar.gz
rails-f7b915b50718c86d3644941cd0bbe7df08888a5b.tar.bz2
rails-f7b915b50718c86d3644941cd0bbe7df08888a5b.zip
Merge branch 'joelhoffman-postgres_schema_builder' into instance_reader
* joelhoffman-postgres_schema_builder: Also support writing the hstore back to the database Hstore values are all strings string_to_hstore / hstore_to_string, serializing don't test schema where hstore not installed schema dumper tests for hstore Additional hstore tests, supporting null values, better compliance with postgres docs add hstore to postgres native types and defaults Conflicts: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
Diffstat (limited to 'activerecord/test/cases/schema_dumper_test.rb')
-rw-r--r--activerecord/test/cases/schema_dumper_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/test/cases/schema_dumper_test.rb b/activerecord/test/cases/schema_dumper_test.rb
index c79382a984..4de0999dbb 100644
--- a/activerecord/test/cases/schema_dumper_test.rb
+++ b/activerecord/test/cases/schema_dumper_test.rb
@@ -238,6 +238,13 @@ class SchemaDumperTest < ActiveRecord::TestCase
def test_schema_dump_includes_tsvector_shorthand_definition
output = standard_dump
+ if %r{create_table "postgresql_hstores"} =~ output
+ assert_match %r{t.hstore "hash_store", default => ""}, output
+ end
+ end
+
+ def test_schema_dump_includes_tsvector_shorthand_definition
+ output = standard_dump
if %r{create_table "postgresql_tsvectors"} =~ output
assert_match %r{t.tsvector "text_vector"}, output
end