add template application key

This commit is contained in:
DocuSeal
2023-11-02 19:33:01 +02:00
parent 036f6049a2
commit 14c3c8181b
5 changed files with 25 additions and 15 deletions
@@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddApplicationIdToSubmitters < ActiveRecord::Migration[7.0]
class AddApplicationKeyToSubmitters < ActiveRecord::Migration[7.0]
def change
add_column :submitters, :application_key, :string
end
@@ -0,0 +1,7 @@
# frozen_string_literal: true
class AddApplicationKeyToTemplates < ActiveRecord::Migration[7.0]
def change
add_column :templates, :application_key, :string
end
end
+2 -1
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_10_17_213639) do
ActiveRecord::Schema[7.0].define(version: 2023_11_02_171817) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -173,6 +173,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_10_17_213639) do
t.datetime "updated_at", null: false
t.text "source", null: false
t.bigint "folder_id", null: false
t.string "application_key"
t.index ["account_id"], name: "index_templates_on_account_id"
t.index ["author_id"], name: "index_templates_on_author_id"
t.index ["folder_id"], name: "index_templates_on_folder_id"