More than 1 year has passed since last update.
なぜなら。
db:reset
< db:migrate:reset
という関係で、後者の方が強力だからだ。
db:migrate:reset
はすべてをやり直してくれる。
自分はこの関係を理解しておらず 「db:resetの方が強力だ」と思い込んでいたため、はまった。
両者の違い
- db:reset はマイグレーションファイルを編集しても、その内容は反映されない。スキーマファイル ( db/schema.rb ) だけを利用する。
- db:migrate:reset はマイグレーションファイルを直接利用する。つまり、変更が反映される。
備考
Links

Ruby on Rails 業務経験 約5年 / Perl PHP Python Golang Linux Apache MySQL BigQuery Jenkins ansible AWS など / いなうらゆうま / YumaInaura / 稲浦悠馬
http://twitter.com/yumainauraWhy not register and get more from Qiita?
- 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
- you can read useful information later efficiently
By "stocking" the articles you like, you can search right away
Sign upLogin