add mysql support

This commit is contained in:
Alex Turchyn committed 2023-07-04 20:52:07 +03:00
1 parent 22ea777c86
commit 70211b24c5
6 files changed
+11 -7

No files matched your search

+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 %>