diff options
author | Rob Worley <robert.worley@gmail.com> | 2013-01-04 21:22:34 +0000 |
---|---|---|
committer | Rob Worley <robert.worley@gmail.com> | 2013-01-04 21:22:34 +0000 |
commit | e209107a518c70c24d3d05ce246b8a79de9c7632 (patch) | |
tree | 4b81505089af848226931d13e5283bda7e4bd00d /activerecord/test/cases/schema_dumper_test.rb | |
parent | cfb3019a1a7d699282a650b68cba7201b5e9f379 (diff) | |
download | rails-e209107a518c70c24d3d05ce246b8a79de9c7632.tar.gz rails-e209107a518c70c24d3d05ce246b8a79de9c7632.tar.bz2 rails-e209107a518c70c24d3d05ce246b8a79de9c7632.zip |
Support for PostgreSQL's ltree data type.
Diffstat (limited to 'activerecord/test/cases/schema_dumper_test.rb')
-rw-r--r-- | activerecord/test/cases/schema_dumper_test.rb | 7 |
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 907b7bec30..cae12e0e3a 100644 --- a/activerecord/test/cases/schema_dumper_test.rb +++ b/activerecord/test/cases/schema_dumper_test.rb @@ -280,6 +280,13 @@ class SchemaDumperTest < ActiveRecord::TestCase end end + def test_schema_dump_includes_ltrees_shorthand_definition + output = standard_dump + if %r{create_table "postgresql_ltrees"} =~ output + assert_match %r[t.ltree "path"], output + end + end + def test_schema_dump_includes_arrays_shorthand_definition output = standard_dump if %r{create_table "postgresql_arrays"} =~ output |