Add support for Airtable

This commit is contained in:
2020-04-13 22:59:46 +02:00
parent 80fe5f4220
commit edf6884647
12 changed files with 179 additions and 60 deletions

View File

@@ -0,0 +1,8 @@
class AddAirtableSupport < ActiveRecord::Migration[6.0]
def change
add_column :forms, :airtable_app_key_ciphertext, :string
add_column :forms, :airtable_api_key_ciphertext, :string
add_column :forms, :airtable_table, :string
add_column :forms, :backend_name, :string
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2020_04_13_101920) do
ActiveRecord::Schema.define(version: 2020_04_13_152532) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -57,6 +57,10 @@ ActiveRecord::Schema.define(version: 2020_04_13_101920) do
t.string "thank_you_url"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.string "airtable_app_key_ciphertext"
t.string "airtable_api_key_ciphertext"
t.string "airtable_table"
t.string "backend_name"
end
create_table "submissions", force: :cascade do |t|