From 22166764cd842843ba753e87b19923f4b548eab6 Mon Sep 17 00:00:00 2001 From: Juanito Fatas Date: Sat, 25 Oct 2014 21:33:15 +0800 Subject: [PATCH] [ci skip] Add missing blank line to AR validation. --- guides/source/active_record_validations.md | 1 + 1 file changed, 1 insertion(+) 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.