Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

ActiveRecord::EnvironmentMismatchError: You are attempting to modify a database that was last run in `test` environment. You are running in `development` environment. If you are sure you want to continue, first set the environment using:

Davidosky answered on February 10, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • ActiveRecord::ProtectedEnvironmentError: You are attempting to run a destructive action against your 'production' database. If you are sure you want to continue, run the same command with the environment variable: DISABLE_DATABASE_ENVIRONMENT_CHECK=1
  • You are attempting to modify a database that was last run in `test` environment. You are running in `development` environment. If you are sure you want to continue, first set the environment using: bin/rails db:environment:set RAILS_ENV=developme

  • ActiveRecord::EnvironmentMismatchError: You are attempting to modify a database that was last run in `test` environment. You are running in `development` environment. If you are sure you want to continue, first set the environment using:

    0
    Popularity 1/10 Helpfulness 1/10 Language ruby
    Link to this answer
    Share Copy Link
    Contributed on Feb 10 2023
    Davidosky
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.