Playing Next Lesson In
seconds

Database Schema to Migration

In This Lesson

We'll walk through a real-world example of a database schema and how to create migrations. We'll define each table's columns, primary keys, and foreign keys.

Created by
@tomgobich
Published

🕑 Chapters:

00:00 - Database Schema Overview
00:30 - Creating Migration Files
02:50 - Profiles Migration
04:06 - States Migration
04:20 - Posts Migration
06:36 - Topics Migration
07:34 - PostTopics Migration
08:28 - Foreign Key Explanation
09:30 - Populating State Rows
11:11 - Running Migrations 11:31 - Outro

Join the Discussion 0 comments

Create a free account to join in on the discussion
robot comment bubble

Be the first to comment!