Skip to content

Commit f19c0b1

Browse files
Actualizacion a postgres
1 parent 8a24239 commit f19c0b1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ ruby "2.7.5"
77
gem "rails", "~> 7.0.2", ">= 7.0.2.3"
88

99
# Use sqlite3 as the database for Active Record
10-
gem "sqlite3", "~> 1.4"
10+
#gem "sqlite3", "~> 1.4"
11+
gem "pg"
1112

1213
# Use the Puma web server [https://github.com/puma/puma]
1314
gem "puma", "~> 5.0"
@@ -47,5 +48,6 @@ end
4748
group :development do
4849
# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
4950
# gem "spring"
51+
gem "sqlite3", "~> 1.4"
5052
end
5153

config/database.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@ test:
2121
database: db/zipcodes.sqlite3
2222

2323
production:
24-
<<: *default
25-
database: db/zipcodes.sqlite3
24+
adapter: postgresql
25+
database: zipcodes_production
26+
pool: 5
27+
timeout: 5000

0 commit comments

Comments
 (0)