features/application_model.feature in katapult-0.3.0 vs features/application_model.feature in katapult-0.4.0

- old
+ new

@@ -1,7 +1,7 @@ #@announce-output -Feature: The application model prepared by Katapult +Feature: The default application model prepared by Katapult Scenario: Generating the application model template Given a new Rails application with Katapult basics installed When I generate the application model @@ -17,9 +17,12 @@ # The order of attributes is respected when generating the form for that model product.attr :price, type: :money product.attr :mode, assignable_values: %w[public private] product.attr :provider, type: :url product.attr :import_data, type: :json + + # Reference other models just like you called them + product.belongs_to 'user' end # Define a model model 'user' do |user| user.attr :email # Type "email" derived from attribute name