add Postgres
This commit is contained in:
parent
a0b3612f12
commit
216ef1afe8
2
Gemfile
2
Gemfile
@ -9,6 +9,8 @@ gem 'rails', '6.0.3.4'
|
|||||||
gem 'mysql2'
|
gem 'mysql2'
|
||||||
# Use Puma as the app server
|
# Use Puma as the app server
|
||||||
|
|
||||||
|
gem "postgresql"
|
||||||
|
|
||||||
# Use SCSS for stylesheets
|
# Use SCSS for stylesheets
|
||||||
gem 'sass-rails', '~> 5'
|
gem 'sass-rails', '~> 5'
|
||||||
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
|
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
|
||||||
|
@ -229,7 +229,10 @@ GEM
|
|||||||
nio4r (2.5.4)
|
nio4r (2.5.4)
|
||||||
nokogiri (1.10.10)
|
nokogiri (1.10.10)
|
||||||
mini_portile2 (~> 2.4.0)
|
mini_portile2 (~> 2.4.0)
|
||||||
|
pg (1.2.3)
|
||||||
posix-spawn (0.3.13)
|
posix-spawn (0.3.13)
|
||||||
|
postgresql (1.0.0)
|
||||||
|
pg
|
||||||
public_suffix (4.0.1)
|
public_suffix (4.0.1)
|
||||||
puma (3.12.1)
|
puma (3.12.1)
|
||||||
rack (2.2.3)
|
rack (2.2.3)
|
||||||
@ -386,6 +389,7 @@ DEPENDENCIES
|
|||||||
mysql2
|
mysql2
|
||||||
nokogiri
|
nokogiri
|
||||||
posix-spawn
|
posix-spawn
|
||||||
|
postgresql
|
||||||
puma (~> 3.11)
|
puma (~> 3.11)
|
||||||
rails (= 6.0.3.4)
|
rails (= 6.0.3.4)
|
||||||
rails_autolink
|
rails_autolink
|
||||||
|
@ -14,9 +14,10 @@ default: &default
|
|||||||
sql_mode: TRADITIONAL
|
sql_mode: TRADITIONAL
|
||||||
|
|
||||||
development:
|
development:
|
||||||
<<: *default
|
adapter: postgresql
|
||||||
username: root
|
database: presta_app
|
||||||
socket: /tmp/mysql.sock
|
pool: 5
|
||||||
|
username: postgres
|
||||||
|
|
||||||
# Warning: The database defined as "test" will be erased and
|
# Warning: The database defined as "test" will be erased and
|
||||||
# re-generated from your development database when you run "rake".
|
# re-generated from your development database when you run "rake".
|
||||||
|
Reference in New Issue
Block a user