Merge pull request #41 from bumi/fix/db-create-issue

Fix an issue that prevented the database creation
This commit is contained in:
bumi 2020-06-02 21:08:45 +02:00 committed by GitHub
commit 5a4a3414d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View File

@ -37,3 +37,4 @@
/yarn-error.log /yarn-error.log
yarn-debug.log* yarn-debug.log*
.yarn-integrity .yarn-integrity
.DS_Store

View File

@ -1,5 +1,10 @@
# frozen_string_literal: true # frozen_string_literal: true
if ENV['GOOGLE_DEMO_FORM_ID'].present?
GOOGLE_DEMO_FORM = Form.find_by(id: ENV['GOOGLE_DEMO_FORM_ID'])
end
if ENV['AIRTABLE_DEMO_FORM_ID'].present?
AIRTABLE_DEMO_FORM = Form.find_by(id: ENV['AIRTABLE_DEMO_FORM_ID'])
end
GOOGLE_DEMO_FORM = Form.find_by(id: ENV['GOOGLE_DEMO_FORM_ID'])
AIRTABLE_DEMO_FORM = Form.find_by(id: ENV['AIRTABLE_DEMO_FORM_ID'])
AIRTABLE_DEMO_EMBED_URL = ENV['AIRTABLE_DEMO_EMBED_URL'] AIRTABLE_DEMO_EMBED_URL = ENV['AIRTABLE_DEMO_EMBED_URL']