aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/schema_dumper_test.rb
diff options
context:
space:
mode:
authorKonstantin Shabanov <etehtsea@gmail.com>2012-06-12 18:10:08 +0400
committerKonstantin Shabanov <etehtsea@gmail.com>2012-06-14 17:44:51 +0400
commit12e9a75f227ea7bcc23e2717e9ff5a72ec64e1f1 (patch)
tree91a5ba4f0cd38588c1399b1ba13a1853fbbd37e5 /activerecord/test/cases/schema_dumper_test.rb
parent122f6de2e038dbbece4ee59ddcfcf75ae9c49f63 (diff)
downloadrails-12e9a75f227ea7bcc23e2717e9ff5a72ec64e1f1.tar.gz
rails-12e9a75f227ea7bcc23e2717e9ff5a72ec64e1f1.tar.bz2
rails-12e9a75f227ea7bcc23e2717e9ff5a72ec64e1f1.zip
Add uuid type support to PostgreSQL adapter
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 ab80dd1d6d..ed0b6a86ba 100644
--- a/activerecord/test/cases/schema_dumper_test.rb
+++ b/activerecord/test/cases/schema_dumper_test.rb
@@ -257,6 +257,13 @@ class SchemaDumperTest < ActiveRecord::TestCase
end
end
+ def test_schema_dump_includes_uuid_shorthand_definition
+ output = standard_dump
+ if %r{create_table "poistgresql_uuids"} =~ output
+ assert_match %r{t.uuid "guid"}, output
+ end
+ end
+
def test_schema_dump_includes_hstores_shorthand_definition
output = standard_dump
if %r{create_table "postgresql_hstores"} =~ output