From 21ff8a493206cd50558b03975a7eaaaeb6ec7900 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Sat, 4 Mar 2017 11:15:00 +0000 Subject: [PATCH] [ci skip] Add CHANGELOG entry for #28282 --- activerecord/CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 55773f2172..8d054a144a 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,13 @@ +* Don't share options between reference id and type columns + + When using a polymorphic reference column in a migration, sharing options + between the two columns doesn't make sense since they are different types. + The `reference_id` column is usually an integer and the `reference_type` + column a string so options like `unsigned: true` will result in an invalid + table definition. + + *Ryuta Kamizono* + * Use `max_identifier_length` for `index_name_length` in PostgreSQL adapter. *Ryuta Kamizono* -- GitLab