Skip to content

Commit

Permalink
Pin postgres gem
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel O'Connor committed Jan 18, 2018
1 parent 0581173 commit ddebe74
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
16 changes: 10 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ source 'https://rubygems.org'

# Uncomment the database that you have configured in config/database.yml
# ----------------------------------------------------------------------
db_drivers = {
"mysql" => "mysql2",
"sqlite" => "sqlite3",
"postgres" => "pg"
}

gem db_drivers[ENV['CI'] && ENV['DB']] || 'pg'
case ENV['CI'] && ENV['DB']
when 'sqlite'
gem 'sqlite3'
when 'mysql'
gem 'mysql2'
when 'postgres'
gem 'pg', '~> 0.21.0' # Pinned, see https://github.com/fatfreecrm/fat_free_crm/pull/689
else
gem 'pg', '~> 0.21.0'
end

# Removes a gem dependency
def remove(name)
Expand Down
7 changes: 3 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ GEM
parallel (1.12.1)
parser (2.4.0.2)
ast (~> 2.3)
pg (1.0.0)
pg (0.21.0)
polyamorous (1.3.2)
activerecord (>= 3.0)
powerpack (0.1.1)
Expand Down Expand Up @@ -435,7 +435,7 @@ DEPENDENCIES
nokogiri (>= 1.8.1)
paper_trail (~> 6.0.0)
paperclip
pg
pg (~> 0.21.0)
premailer
pry-rails
puma
Expand Down Expand Up @@ -471,6 +471,5 @@ DEPENDENCIES
will_paginate
zeus


BUNDLED WITH
1.16.0
1.16.1

0 comments on commit ddebe74

Please sign in to comment.