Which of the following command runs the migrations for your rails project
-
rake db:migrations
-
rake db:migrate
-
rake db:migrates
-
rake db:migrate project
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'.