1

I'm inserting data to tables via seeds.rb and I want to delete them running rails db:reset, but I got an error:

rails aborted! ActiveRecord::NoEnvironmentInSchemaError:

Environment data not found in the schema. To resolve this issue, run:

bin/rails db:environment:set RAILS_ENV=development

After running this I am able to run rails db:reset but the data are still in the tables.

Mikhail Kholodkov
  • 23,642
  • 17
  • 61
  • 78
TomKo1
  • 214
  • 2
  • 14

0 Answers0