Difference between rake db:migrate db:reset and db:schema:load

db:migrate runs (single) migrations that have not run yet.

db:create creates the database

db:drop deletes the database

db:schema:load creates tables and columns within the (existing) database following schema.rb

db:setup does db:create, db:schema:load, db:seed

db:reset does db:drop, db:setup  

Normally, db:migrate used after having made changes to the schema via new migration files after creating db i.e when db already exists.

db:schema:load is used when you setup a new instance of your app.

Comments

  1. Thanks for sharing this wonderful stuff plz visit for more info DbSchema 8.2.10

    ReplyDelete
  2. Great set of tips from the master himself. Excellent ideas. Anyone wishing to take their blogging forward must read these tips. Thank you .DbSchema 8.3.0 Crack With Serial Key 2020 Free Full Here!

    ReplyDelete

  3. Thanks for this blog, This blog contains more useful information...
    ReactJS Course in Chennai
    MVC Classes in Chennai

    ReplyDelete
  4. I appreciate you taking the time and effort to share your knowledge. This material proved to be really efficient and beneficial to me. Thank you very much for providing this information. Continue to write your blog.

    Data Engineering Services 

    Artificial Intelligence Solutions

    Data Analytics Services

    Data Modernization Solutions

    ReplyDelete

Post a Comment

Popular posts from this blog

Modulo operation in Ruby

Very good post to understand basic regex Expressations