How to Use Migrations in Rails (Step-by-Step)

preview_player
Показать описание
In this video you'll learn how to use migrations in Rails.

Migrations allow you to describe & apply structural (schema) changes to your database.

Want to add a new column or table?

Use a migration.

By changing your database schema, you'll be able to store new types of data in your database.

Rails models are backed by a database table.

The first step to adding a new model to your app, once you're clear on what attributes it needs to have & how it's related to other models, is to create a new table via the migration system.

In this video you'll also discover a few tricks you can use to generate your migrations with less work.

Want to learn more?

Make sure to click the like button, subscribe to the channel if you haven't yet, and visit my website:

Thanks for watching & have an awesome day!

- Jesus Castello
Рекомендации по теме
Комментарии
Автор

Thanks Jesus. How about a video on managing migration files?

jmcbri
Автор

Está buenísima la idea, pero me parece que si haces el vídeo en español quería un poco más claro... solo es una observación. Saludos!

martincabo