3
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

posted at

updated at

【rails db:migrate:reset】とは

【rails db:migrate:reset】とは

下記のコマンドを一度に実行してくれる。

  1. rails db:drop
  2. rails db:create
  3. rails db:migrate

rails db:seedは別で実行する

参考:https://blog.naichilab.com/entry/db_reset-vs-db_migrate_reset
https://qiita.com/parsetree/items/e9b08c6b11f762b949de

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
3
Help us understand the problem. What are the problem?