We built a Rails app that stores data using a single model.
What if we want to build an app with more than one kind of data, like Team and Athlete? Both Team and Athlete would have have different columns, and it would get messy to represent both in one model. Instead, we can represent them using two models.
Let’s see how this works by building a Rails app for traveling.
We’ve taken the steps to create a Rails app called TravelApp along with the installation of the necessary gems to get us started.
Go ahead and take a look through the files and folders before we build it out!