Drop mysql2 support, settle on postgresql

It's enough work to support one database, let's settle on
the defacto Rails default.
This commit is contained in:
Henne Vogelsang 2024-06-06 17:16:02 +02:00
parent f51db484ab
commit b2f0796799
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
11 changed files with 38 additions and 40 deletions

View file

@ -1,14 +1,6 @@
<%
encoding = 'unicode'
if ENV.fetch('OSEM_DB_ADAPTER', nil) == 'mysql2'
encoding = 'utf8'
end
%>
default: &default
adapter: <%= ENV.fetch('OSEM_DB_ADAPTER', 'postgresql') %>
encoding: <%= encoding %>
adapter: 'postgresql'
encoding: 'unicode'
host: <%= ENV.fetch('OSEM_DB_HOST', 'database') %>
port: <%= ENV.fetch('OSEM_DB_PORT', '5432') %>
username: <%= ENV.fetch('OSEM_DB_USER', 'postgres') %>
@ -21,9 +13,6 @@ development:
<<: *default
database: osem_development
# Warning: The database defined as "test" will be erased and
# re-generated when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
database: osem_test