Skip to content

Commit 24fc608

Browse files
committed
pg bd
1 parent 54c746b commit 24fc608

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ group :development do
4444
end
4545

4646
group :production do
47-
gem 'pg'
47+
gem 'pg', '~> 0.18.4'
4848
end
4949

5050
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem

config/database.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@ test:
2121
database: db/test.sqlite3
2222

2323
production:
24-
<<: *default
25-
database: db/production.sqlite3
24+
adapter: postgresql
25+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
26+
timeout: 5000
27+
database: pizzas_production
28+
username: postgres

0 commit comments

Comments
 (0)