One example of a higher level component in my app is Active Record. Active record is a module with the Base class inside of it that gives our models methods through inheritance that allow us to manipulate data.
Essentially, active record can be called on our models to create, read, update and delete records. In the background it's executing SQL that does this record manipulation.
Active Storage is a module that allows me to upload files in a simple manner. It does the following...
Action View is the module that is responsible for rendering our views. It does the following...
# this action returns all of the listing records and sends them to the index view
def index
Listing.all
end
# Load every game and its publishers username
# only load active games
games = []
list = Game.with_attached_images
.includes(publisher: [:user])
.select { |game| game.active == true }
You must have:
- A screenshot of your ERD from dbdiagram
- Text for how you created the dbdiagram, put this into your db/ directory and call the file dbdiagram.dbml
- Discuss why you implemented your different tables and relations, explain how they work
- What is the problem you're trying to solve
- Why does this problem need solving
- Walk through your app