lib/napa/cli/templates/model/app/models/model.rb.tt
class <%= model_name.camelize %> < <%= parent_class_name.classify %>
<% attributes.select(&:reference?).each do |attribute| -%>
belongs_to :<%= attribute.name %><%= ', polymorphic: true' if attribute.polymorphic? %><%= ', required: true' if attribute.required? %>
<% end -%>
<% if attributes.any?(&:password_digest?) -%>
# Note: This requires bcrypt to be added to your Gemfile.
has_secure_password
<% end -%>
end