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.