Load and use fixture in rails console
You should be able to load your fixtures prior to entering console. Like this: RAILS_ENV=test bin/rails db:fixtures:load RAILS_ENV=test bin/rails console However, you still won’t be able to access your fixture data like you would in a test. This simply loads your test database with your fixtures data. So you’d still have to do something like: … Read more