models_directory:
  type: directory
  output_path: <%= File.join("app", "models") %>
model_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "model.rb.template") %>
  output_path: <%= File.join("app", "models", "#{param(:name).singular.underscore}.rb") %>
  
<% if testing_framework == "test_case" %>
test_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "test.rb.template") %>
  output_path: <%= File.join("test", "models", "#{param(:name).singular.underscore}_test.rb") %>
<% elsif testing_framework == "rspec" %>
test_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "rspec.rb.template") %>
  output_path: <%= File.join("test", "models", "#{param(:name).singular.underscore}_spec.rb") %>
<% end %>