Rails 5, Rspec: Environment data not found in the schema

Erro:

rails aborted!
ActiveRecord::NoEnvironmentInSchemaError: 

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

    bin/rails db:environment:set RAILS_ENV=test

Correção:

rails db:environment:set RAILS_ENV=test

http://stackoverflow.com/questions/38209186/rails-5-rspec-environment-data-not-found-in-the-schema

Share and Enjoy !

0Shares
0 0