From 0d58bf7e02db486d70ab4a801265b0c4b18d7e7c Mon Sep 17 00:00:00 2001 From: ablwr Date: Tue, 12 Aug 2014 08:48:05 -0400 Subject: [PATCH] properly set up databases in a less cold-drug-addled way --- Gemfile | 8 ++++++-- config/database.yml | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 982533d..23574c1 100644 --- a/Gemfile +++ b/Gemfile @@ -4,9 +4,13 @@ source 'https://rubygems.org' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.1.4' # Use sqlite3 as the database for Active Record -# gem 'sqlite3' +group :test, :development do + gem 'sqlite3' +end # Swappin' -gem 'pg' +group :production do + gem 'pg' +end # Use SCSS for stylesheets gem 'sass-rails', '~> 4.0.3' # Use Uglifier as compressor for JavaScript assets diff --git a/config/database.yml b/config/database.yml index 966246f..82f5361 100644 --- a/config/database.yml +++ b/config/database.yml @@ -1,10 +1,10 @@ development: - adapter: postgresql + adapter: sqlite3 database: my_database_development pool: 5 timeout: 5000 test: - adapter: postgresql + adapter: sqlite3 database: my_database_test pool: 5 timeout: 5000