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

Post a Comment

Popular posts from this blog

rails 3.2 with jruby and mysql with rvm in ubuntu

truncate and link text helper in rails