Overview - Running migrations locally and remotely
What is it?
Running migrations means applying changes to a database's structure, like adding tables or columns, in a controlled way. Doing this locally means applying these changes on your own computer's database, while remotely means applying them on a cloud database. This process helps keep your database organized and consistent as your app grows.
Why it matters
Without migrations, developers would have to manually change databases, which is slow and error-prone. This can cause apps to break or lose data. Running migrations both locally and remotely ensures that everyone on a team works with the same database setup, and that the live app's database stays up to date safely.
Where it fits
Before learning migrations, you should understand basic databases and SQL commands. After mastering migrations, you can explore continuous integration and deployment, where migrations run automatically during app updates.