diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2014-12-26 17:45:12 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2014-12-26 17:54:08 +0900 |
commit | 9b3e7b396eab9914ba96c0b8a3b3cbbdd35c0361 (patch) | |
tree | 04fd53cfb3640fc138d3f7801f0e64cd1cff4bf8 /activerecord/lib/active_record/schema_dumper.rb | |
parent | 5fed875e908ba5fd78c19c8977b0bba5f660e992 (diff) | |
download | rails-9b3e7b396eab9914ba96c0b8a3b3cbbdd35c0361.tar.gz rails-9b3e7b396eab9914ba96c0b8a3b3cbbdd35c0361.tar.bz2 rails-9b3e7b396eab9914ba96c0b8a3b3cbbdd35c0361.zip |
Dump the default `nil` for PostgreSQL UUID primary key.
Diffstat (limited to 'activerecord/lib/active_record/schema_dumper.rb')
-rw-r--r-- | activerecord/lib/active_record/schema_dumper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/schema_dumper.rb b/activerecord/lib/active_record/schema_dumper.rb index 3c44a625cc..2a570e1323 100644 --- a/activerecord/lib/active_record/schema_dumper.rb +++ b/activerecord/lib/active_record/schema_dumper.rb @@ -121,7 +121,7 @@ HEADER tbl.print ", id: :bigserial" elsif pkcol.sql_type == 'uuid' tbl.print ", id: :uuid" - tbl.print %Q(, default: "#{pkcol.default_function}") if pkcol.default_function + tbl.print %Q(, default: #{pkcol.default_function.inspect}) end else tbl.print ", id: false" |