aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorEdu Depetris <edu.depetris.00@gmail.com>2019-06-02 18:01:01 -0300
committerEdu Depetris <edu.depetris.00@gmail.com>2019-06-30 15:21:30 -0300
commit77daacf94d7d26c713d4412b68edb64260fc22d9 (patch)
treed3090360c32b705673ce8cff77d62163a0d669ae /activerecord/CHANGELOG.md
parent4b621df3840542c369a2db40529396033af3ec55 (diff)
downloadrails-77daacf94d7d26c713d4412b68edb64260fc22d9.tar.gz
rails-77daacf94d7d26c713d4412b68edb64260fc22d9.tar.bz2
rails-77daacf94d7d26c713d4412b68edb64260fc22d9.zip
Add a warning for enum elements with 'not_' prefix.
When a enum element contains the prefix 'not_'. I warns to users to be aware of this new feature. Example code: class Foo < ActiveRecord::Base enum status: [:sent, :not_sent] end
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 8642227a2b..9e32e18e11 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,11 @@
+* Add a warning for enum elements with 'not_' prefix.
+
+ class Foo
+ enum status: [:sent, :not_sent]
+ end
+
+ *Edu Depetris*
+
* Loading the schema for a model that has no `table_name` raises a `TableNotSpecified` error.
*Guilherme Mansur*, *Eugene Kenny*