refactor: remove Postal.database_url

This commit is contained in:
Adam Cooke
2024-02-01 18:09:39 +00:00
parent ff901e99f7
commit 96ba4b8f30
4 changed files with 21 additions and 12 deletions
+13 -3
View File
@@ -1,8 +1,18 @@
default: &default
adapter: mysql2
encoding: <%= Postal.config.main_db.encoding %>
pool: <%= Postal.config.main_db.pool_size %>
username: <%= Postal.config.main_db.username %>
password: <%= Postal.config.main_db.password %>
host: <%= Postal.config.main_db.host %>
port: <%= Postal.config.main_db.port %>
database: <%= Postal.config.main_db.database %>
development:
url: <%= Postal.database_url %>
<<: *default
production:
url: <%= Postal.database_url %>
<<: *default
test:
url: <%= Postal.database_url %>
<<: *default