aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-07-24 14:27:41 +0200
committerYves Senn <yves.senn@gmail.com>2014-07-24 14:27:41 +0200
commit2a67e12fdb832a6b6e94bed1a0b05290019f5514 (patch)
tree8ff6954c1eaba775d438e50119069d0b4400c558 /activerecord/CHANGELOG.md
parentf3478f84130dc358ac8f563233d00fbcdcc67a30 (diff)
downloadrails-2a67e12fdb832a6b6e94bed1a0b05290019f5514.tar.gz
rails-2a67e12fdb832a6b6e94bed1a0b05290019f5514.tar.bz2
rails-2a67e12fdb832a6b6e94bed1a0b05290019f5514.zip
pg, `change_column_default, :table, :column, nil` issues `DROP DEFAULT`.
Closes #16261. [Matthew Draper, Yves Senn] Using `DEFAULT NULL` results in the same behavior as `DROP DEFAULT`. However, PostgreSQL will cast the default to the columns type, which leaves us with a default like "default NULL::character varying". /cc @matthewd
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 43232443e7..f71a887f32 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,10 @@
+* `change_column_default :table, :column, nil` with PostgreSQL will issue a
+ `DROP DEFAULT` instead of a `DEFAULT NULL` query.
+
+ Fixes #16261.
+
+ *Matthew Draper*, *Yves Senn*
+
* Allow to specify a type for the foreign key column in `references`
and `add_reference`.