aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2013-07-10 02:14:38 +0900
committerkennyj <kennyj@gmail.com>2013-07-10 02:16:27 +0900
commit4734e4ed3181bf8c8dca959078b7e6295e702719 (patch)
tree276d495f854ce7a05d840d1c738fba4434e7c099 /activerecord/test
parent51e165808b8fdb0323d50aa7de973303224b7c7b (diff)
downloadrails-4734e4ed3181bf8c8dca959078b7e6295e702719.tar.gz
rails-4734e4ed3181bf8c8dca959078b7e6295e702719.tar.bz2
rails-4734e4ed3181bf8c8dca959078b7e6295e702719.zip
Migration dump UUID default functions to schema.rb. Fixes #10751.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/adapters/postgresql/uuid_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/uuid_test.rb b/activerecord/test/cases/adapters/postgresql/uuid_test.rb
index b573d48807..20d7254b82 100644
--- a/activerecord/test/cases/adapters/postgresql/uuid_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/uuid_test.rb
@@ -61,6 +61,7 @@ class PostgresqlUUIDTest < ActiveRecord::TestCase
schema = StringIO.new
ActiveRecord::SchemaDumper.dump(@connection, schema)
assert_match(/\bcreate_table "pg_uuids", id: :uuid\b/, schema.string)
+ assert_match(/t\.uuid "other_uuid", default: "uuid_generate_v4\(\)"/, schema.string)
end
end