Differences between "rake db:migrate", "db:reset", and "db:schema:load"

Asked 2 years ago, Updated 2 years ago, 67 views

What I want to know is the difference between rake db:schema:load.

*rake db:migrate and rake db:reset I already know the difference, but I wrote it down just in case what I knew was wrong

ruby ruby-on-rails database

2022-09-22 22:00

1 Answers

db:migrate is usually used when there is a change in schema, and db:schema:load is used when setting up a new instance in the app.

For more information, see databases.rake


2022-09-22 22:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.