aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorJuanito Fatas <katehuang0320@gmail.com>2014-10-25 21:33:15 +0800
committerJuanito Fatas <katehuang0320@gmail.com>2014-10-25 21:33:15 +0800
commit22166764cd842843ba753e87b19923f4b548eab6 (patch)
treead3e1abde03bf642ec1b645334c7823c1956a223 /guides
parent8d7cf75684d5e76ef635f92125a51cb4c1c0fd3b (diff)
downloadrails-22166764cd842843ba753e87b19923f4b548eab6.tar.gz
rails-22166764cd842843ba753e87b19923f4b548eab6.tar.bz2
rails-22166764cd842843ba753e87b19923f4b548eab6.zip
[ci skip] Add missing blank line to AR validation.
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_record_validations.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md
index 1c1b863fe9..65671c7be2 100644
--- a/guides/source/active_record_validations.md
+++ b/guides/source/active_record_validations.md
@@ -533,6 +533,7 @@ validates :boolean_field_name, presence: true
validates :boolean_field_name, inclusion: { in: [true, false] }
validates :boolean_field_name, exclusion: { in: [nil] }
```
+
By using one of these validations, you will ensure the value will NOT be `nil`
which would result in a `NULL` value in most cases.