Does Rail's ActiveRecord have any special rules when attempting to set one of the column values in the model to nil?
The sanity check in the method freez always fails.
Model: Project
Column: non_project_costs_value (nullable decimal field)
def froz?
return !(non_project_costs_value.nil?)
end
def freez(val)
raise 'Already frozen, cannot freeze ... the value is ' + non_project_costs_value.to_s if froz?
non_project_costs_value = val
save
raise 'Sanity check. After freezing the thing should be frozen!' if !froz?
end