AR: Migrations and Join Tables

What Are They?

Migrations are a convenient way to alter your database schema and table. Every time you create a new table, you should create a new migration. Every time you make a change to an existing table, you should make a new migration. Make sure to name the filename and the name of the class the same. Classnames are CamelCase while filenames are snake_case. Here's an example below.

Join Tables

Join Tables are only needed in a many to many relationship. Make sure you wrap these commands in a CamelCase class name that is identical to its snake_case filename. Here is an example below.