diff options
author | kennyj <kennyj@gmail.com> | 2013-07-10 02:14:38 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2013-07-10 02:16:27 +0900 |
commit | 4734e4ed3181bf8c8dca959078b7e6295e702719 (patch) | |
tree | 276d495f854ce7a05d840d1c738fba4434e7c099 /activerecord/test | |
parent | 51e165808b8fdb0323d50aa7de973303224b7c7b (diff) | |
download | rails-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.rb | 1 |
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 |