upload template from URL

This commit is contained in:
DocuSeal committed 2023-10-29 21:36:30 +02:00
1 parent b48615df3f
commit ddb557ebef
10 files changed
+96 -19

No files matched your search

@@ -20,7 +20,7 @@ class AddFolderIdToTemplates < ActiveRecord::Migration[7.0]
def up
add_reference :templates, :folder, foreign_key: { to_table: :template_folders }, index: true, null: true
MigrationAccount.all.pluck(:id).each do |account_id|
MigrationAccount.pluck(:id).each do |account_id|
author_id = MigrationUser.where(account_id:).minimum(:id)
next if author_id.blank?