add mysql support

This commit is contained in:
Alex Turchyn
2023-07-04 20:23:22 +03:00
parent 22ea777c86
commit 70211b24c5
6 changed files with 11 additions and 7 deletions
+3 -2
View File
@@ -10,7 +10,8 @@ test:
<<: *default
database: docuseal_test
<% if ENV['DATABASE_URL'].to_s.empty? %>
production:
adapter: <%= ENV['DATABASE_URL'].present? ? 'postgresql' : 'sqlite3' %>
encoding: unicode
adapter: sqlite3
database: <%= ENV['WORKDIR'] || '.' %>/db.sqlite3
<% end %>