Notes posted by korin
RSS feed![Default_avatar_30](https://www.gravatar.com/avatar/4964bad1252f34c95f18c0862edb5c23?size=30&default=http://apidock.com/images/default_avatar_30.png)
1 thank
validating a database column acceptance
accept option should be set to true if you are validating a database column, since the attribute is typecast from “1” to true before validation
validates :terms, acceptance: { allow_nil: false, accept: true }
![Default_avatar_30](https://www.gravatar.com/avatar/4964bad1252f34c95f18c0862edb5c23?size=30&default=http://apidock.com/images/default_avatar_30.png)
0 thanks