replace_gem: Error loading the 'sqlite3' Active Record adapter - while creating model

前端 未结 4 674
后悔当初
后悔当初 2020-12-10 04:09

I am getting an error while creating a model in the created project and the error is as follows,

/home/sushmitha/.rvm/gems/ruby-2.5.1/gems/bundler-2.0

4条回答
  •  时光取名叫无心
    2020-12-10 04:58

    Now that rails 5.2.2.1 has been released, the correct and also easiest fix is to bump rails to that version, as it will restrict sqlite3 to 1.3.6:

    # In Gemfile
    gem 'rails', '~> 5.2.2.1'
    

    And then in the terminal

    bundle install
    

    Given the security fixes in that version, this should be done anyway.

提交回复
热议问题