What is the purpose of database migrations in a full-stack application?
-
A
To back up data to cloud storage
-
B
To version-control schema changes and apply them consistently across environments
-
C
To replicate data to a read replica
-
D
To automatically generate REST endpoints from the schema