All threads / rails 5.2.2 template.rb sqlite3 versions issue

Ask A Question

Notifications

You’re not receiving notifications from this thread.

rails 5.2.2 template.rb sqlite3 versions issue

kriera asked in Tips

Hi there, after few hours digging arround i just found the answer to this:

when trying to start a new project with the template.rb i had issues because of the version of sqlite3. rails was automatically using 1.3.6 active record 5.2.2 forces it and the template was installing the 1.4.0 so had to change manually,

Seems it was a bug reported and already merged to the 5.2.3 so next version this post will (hopefully) make no sense :)

.rvm/gems/ruby-2.6.0/gems/activerecord-5.2.2/lib/active_record/connection_adapters $ vi sqlite3_adapter.rb

changed

gem "sqlite3", "~> 1.3.6"
to
gem "sqlite3", "~> 1.4.0"

and it was able to finish the creation of the new app

Hope it helps!

Kilian.

I'm hoping they release an update that fixes this soon! I've hit this a few times myself and am always surprised this is an issue. Thanks for posting the solution!

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,399+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.