diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-09-22 16:01:01 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-09-22 16:01:01 -0300 |
commit | afcca464db2ea23438c481a5257169570c32c904 (patch) | |
tree | 50840ed2f0cd4f8d15d9879c96df2a137b3e983f /activerecord/test | |
parent | 70ff2568508151b89880b372f0f23fd328bd7027 (diff) | |
parent | 4734e4ed3181bf8c8dca959078b7e6295e702719 (diff) | |
download | rails-afcca464db2ea23438c481a5257169570c32c904.tar.gz rails-afcca464db2ea23438c481a5257169570c32c904.tar.bz2 rails-afcca464db2ea23438c481a5257169570c32c904.zip |
Merge pull request #11382 from kennyj/fix_10751-2
Dump UUID default functions to schema.rb [2nd version]. Fixes #10751.
Conflicts:
activerecord/CHANGELOG.md
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 e4cf5d2ef6..0cd5b420fc 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 |