Created by: s-mage
Rails allow to define custom attribute. It's usually used for coersion but nothing prevents me to use it as attr_accessor. For such cases generator was failing with undefined method 'has_one?' for nil:NilClass (NoMethodError)
With this fix generator doesn't try to define what's that and relies on column names instead of attribute names.