I’m hip to the naming conventions in ruby, but not completely convinced
how they translate when creating boolean database fields in Rails.
For example, if I want to be able to call ‘approved?’ on a model, I
presume the standard would be to create a boolean attribute named
‘approved’.
But sometimes the lack of the question mark in the database field name
makes the meaning of the field name ambiguous, at least to me.
Does anyone take or recommend a different approach, such as naming the
db field ‘is_approved’ and then adding ‘def approved?; is_approved?;
end’ to the model?