hene

hene.dev

Log:

2019/03/12

やったこと

やりたいこと

困っていること

その他

StandardError: An error has occurred, this and all later migrations canceled:

$ bundle exec rails db:migrate:reset
$ bundle exec rails db:migrate

update_all

Rails/SkipsModelValidations: Avoid using `update_all` because it skips validations. (convention:Rails/SkipsModelValidations)

まとめて更新できる。 バリデーションやコールバックの呼び出しが行われない。

Shop.where(brand: 1).update_all(status: 'hogehoge')

MiniTest

**no file ****

branch

$ git rebase --onto 生やしたかったブランチ 間違えて生やしたブランチ 今いるブランチ