Multiple choice technology web technology

Which of the following command runs the migrations for your rails project

  1. rake db:migrations

  2. rake db:migrate

  3. rake db:migrates

  4. rake db:migrate project

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The correct Rails command is 'rake db:migrate' - this applies pending migrations to the database. Options A and C use incorrect verb forms ('migrations' and 'migrates' instead of 'migrate'), and D incorrectly adds 'project' as an argument. The Rails migration syntax follows the pattern 'rake db:taskname'.