Closed greyblake closed 8 years ago
Hi, thanks for the nice gem!
I wonder, is it possible to instrcut inclusion validator to allow NULL for nullable columns? E.g. like this:
inclusion
NULL
validates :table_name, :column_name, inclusion: { in: [nil, 1, 2, 3] }
Спасибо)
Figured it out. I had to use allow_nil option:
allow_nil
validates :table_name, :column_name, inclusion: { in: [1, 2, 3], allow_nil: true }
Hi, thanks for the nice gem!
I wonder, is it possible to instrcut
inclusion
validator to allowNULL
for nullable columns? E.g. like this:Спасибо)