Help us understand the problem. What is going on with this article?

あとからgem sqlite3を削除したらエラーが出た

rails new するときに '-o' コマンドを入れてなくて、あとからgem 'sqlite3'を消したら以下のエラーが出た

ActiveRecord::ConnectionNotEstablished: No connection pool with 'primary' found.

環境はRails5.2

まずは config/application.rb から

require "ative_record/railtie"

をコメントアウト。

次に、config/environments/development.rb 内を "active_record"で検索して

config.active_record.migration_error = :page_load
config.active_record.verbose_query_logs = true

この2つをコメントアウト!
多分これで問題ない!

おっと。
production.rbの方もコメントアウトしなければ。。。

config.active_record.dump_schema_after_migration = false
mi-miya
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした