You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run into a problem where I had to make sure that an association has a validate: false on the association. I started it with writing a test for it, but it passed immediately without making the required code change.
I think the problem is that in my case there weren't a validate option prior to the task. When it was validated as a boolean, the nil value was simply converted tofalse
I run into a problem where I had to make sure that an association has a
validate: false
on the association. I started it with writing a test for it, but it passed immediately without making the required code change.I created this code snippet to reproduce the issue: https://gist.github.com/kiskoza/da2b4a0ba6930e9454403ea36e3fd73c
I think the problem is that in my case there weren't a
validate
option prior to the task. When it was validated as a boolean, thenil
value was simply converted tofalse
Docs about the validate option: https://apidock.com/rails/ActiveRecord/Associations/ClassMethods/has_many
The text was updated successfully, but these errors were encountered: