Is there anything wrong with defaulting a boolean field to nil
rather than false
with an ActiveRecord migration for use with Postgres?
I like how it gives a small bit of extra data- whether or not that field has been marked as true or false yet.
there is nothing to stop you from using nil on boolean - but I personally like my booleans to be true or false, i've found that having nil can lead to some ugly code
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With