diff options
author | pdebelak <pdebelak@gmail.com> | 2017-07-07 16:19:56 -0500 |
---|---|---|
committer | pdebelak <pdebelak@gmail.com> | 2017-07-07 16:19:56 -0500 |
commit | 38b041713b609d8fcd2c458804cdef8a81e567a7 (patch) | |
tree | a8619e71433ff64aba383275d518472bd9009412 /activerecord/test/schema/mysql2_specific_schema.rb | |
parent | 98f8f81879825a009b0c751b3178fcb687e3033a (diff) | |
download | rails-38b041713b609d8fcd2c458804cdef8a81e567a7.tar.gz rails-38b041713b609d8fcd2c458804cdef8a81e567a7.tar.bz2 rails-38b041713b609d8fcd2c458804cdef8a81e567a7.zip |
Don't allow uuids with orphan curly braces
The uuid validation regex was allowing uuids to have a single leading
curly brace or single trailing curly brace. Saving with such a uuid
would cause Postgres to generate an exception even though the record
seemed valid. With this change, the regex requires both a leading *and*
a trailing curly brace or neither to be valid.
Diffstat (limited to 'activerecord/test/schema/mysql2_specific_schema.rb')
0 files changed, 0 insertions, 0 deletions