diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-03-11 08:19:25 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-03-11 08:19:25 +0100 |
commit | 0e0b41d58c0a8e5921b7eebc3a6e0e4cc012ce4d (patch) | |
tree | d96edda3a1db2bf2cd0cff4803244e911ac415ec /activerecord/test/cases/schema_dumper_test.rb | |
parent | 47ea87b8b9357beaca1a9bd2e191d0113b677966 (diff) | |
parent | b3e0da3062f809599fb4da9f9a29ed45aebd1ff6 (diff) | |
download | rails-0e0b41d58c0a8e5921b7eebc3a6e0e4cc012ce4d.tar.gz rails-0e0b41d58c0a8e5921b7eebc3a6e0e4cc012ce4d.tar.bz2 rails-0e0b41d58c0a8e5921b7eebc3a6e0e4cc012ce4d.zip |
Merge pull request #12523 from lsylvester/pg_citext
Support for PostgreSQL citext 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 2748cbdbf4..575eb34a9c 100644 --- a/activerecord/test/cases/schema_dumper_test.rb +++ b/activerecord/test/cases/schema_dumper_test.rb @@ -319,6 +319,13 @@ class SchemaDumperTest < ActiveRecord::TestCase end end + def test_schema_dump_includes_citext_shorthand_definition + output = standard_dump + if %r{create_table "postgresql_citext"} =~ output + assert_match %r[t.citext "text_citext"], output + end + end + def test_schema_dump_includes_ltrees_shorthand_definition output = standard_dump if %r{create_table "postgresql_ltrees"} =~ output |