# Agile Web Development with Rails 6: LineItem

**URL:** <https://forum.devtalk.com/t/agile-web-development-with-rails-6-lineitem/43655>\
**Category:** PragProg Customers\
**Tags:** question, book-agile-web-development-with-rails-6\
**Created:** [6 March 2022 15:07 UTC](https://forum.devtalk.com/t/agile-web-development-with-rails-6-lineitem/43655 "2022-03-06T15:07:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![davetron5000](https://forum.devtalk.com/user_avatar/forum.devtalk.com/davetron5000/32/5597_2.png) [@davetron5000](https://forum.devtalk.com/u/davetron5000)\
**Post date:** [7 March 2022 13:36 UTC](https://forum.devtalk.com/t/agile-web-development-with-rails-6-lineitem/43655/2 "2022-03-07T13:36:57Z")

</div>

In theory if the join table doesn’t do more than just connect two tables, you are right, you probably would not need to create a model class for it. Iteration D2 doesn’t really foreshadow this, but in Iteration E1, we add a quantity to the line item, and this is a good example of why you’d make a model for the join table - to add metadata about the many-to-many relationship itself.

---

_[View the full topic](https://forum.devtalk.com/t/agile-web-development-with-rails-6-lineitem/43655)._
