LoginSignup
0
0

More than 1 year has passed since last update.

Devise 利用下の db:seed で "Could not find a valid mapping" エラー

Posted at

Rails に Devise を入れ、いろいろいじっている時に以下のエラーに遭遇。

$ docker-compose run web rake db:seed

Could not find a valid mapping for #<HogeHoge ~>

routes.rb に devise_for の指定がないといけない模様

Rails.application.routes.draw do
  # ...

  devise_for :hoge_hoges

  # ...
end

おしまい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0