class Rails::Generators::GeneratedAttribute

def reference?

def reference?
  [ :references, :belongs_to ].include?(self.type)
end