1 2 3 4 5
class <%= class_name %> < <%= options[:parent] %> <% attributes.select {|attr| attr.reference? }.each do |attribute| -%> belongs_to :<%= attribute.name %> <% end -%> end