Ruby on Rails - “Add 'gem sqlite3'' to your Gemfile”

前端 未结 11 1168
你的背包
你的背包 2020-12-05 13:51

I\'m a complete n00b on Rails with only beginner knowledge of Ruby. I plan on studying Ruby more before I really learn Rails, but I\'m waayy too curious for my own good.

11条回答
  •  情深已故
    2020-12-05 14:23

    1. Don't make another database global and then make sqlite3 specific to an environment on your gem file.
    2. Use a previous gem.
    3. Make sure you run bundle install, then bundle update, and lastly bundle install.

    Your Gemfile might include entries like this:

    group :development, :production do
      gem 'pg', '0.15.1'
    end
    
    group :test do
      gem 'sqlite3', '1.3.6'
    end
    

提交回复
热议问题