What is the purpose of database migrations in a software project?
Correct! Well done.
Incorrect.
The correct answer is B) Version-controlled, incremental scripts that evolve a database schema over time in a repeatable, trackable way, so every environment (dev, staging, production) can apply the same changes in the same order
Correct Answer
Version-controlled, incremental scripts that evolve a database schema over time in a repeatable, trackable way, so every environment (dev, staging, production) can apply the same changes in the same order
Migrations (Laravel, Rails ActiveRecord, Django, Flyway) are ordered, version-controlled files describing schema changes — creating tables, adding columns, etc. Running them in sequence keeps every environment's schema consistent and lets teams track and roll back changes like any other code.