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

前端 未结 4 678
后悔当初
后悔当初 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:46

    For reference only following is added here,

    For Rails 5+, this issue is sort out by specifying the appropriate version for the sqlite gem in your Gemfile while working with an SQLite database:

     gem 'sqlite3', '~> 1.3', '>= 1.3.6'
    

    Reference

提交回复
热议问题