Do not see false as blank at boolean columns

Given a record with a boolean attribute "flag" set to true (default value is true).

When I try to change the column of the existing record to false through update_attribute(:flag, false)

Then attributes[attribute] == false
And attributes[attribute].blank? == true
And default_value_for sets the attribute to its defult value "true".

But the attribute should be set to false.

That's why I changed default_value_for to look for attributes[attribute] == nil instead of attributes[attribute].blank? before setting the default value if it's a boolean column.