Я делаю heroku run rake db:migrate
, и это ошибка:
Gem :: LoadError: Ошибка загрузки адаптера Active Record 'sqlite3'.Отсутствует драгоценный камень, это зависит от?sqlite3 не является частью пакета.Добавьте его в свой Gemfile.
Gemfile:
group :production do
gem 'pg', '~> 0.18'
end
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
end
group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
group :test do
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 2.15'
gem 'selenium-webdriver'
# Easy installation and use of chromedriver to run system tests with Chrome
gem 'chromedriver-helper'
end
Database.yml
production:
adapter: postgresql
encoding: Unicode