mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 15:22:33 -05:00
preserve template fields per submission
This commit is contained in:
1 parent
a92d1d82c1
commit
e1eb2da6f9
11 files changed
+78
-21
No files matched your search
@@ -4,12 +4,15 @@
|
||||
#
|
||||
# Table name: submissions
|
||||
#
|
||||
# id :bigint not null, primary key
|
||||
# deleted_at :datetime
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# created_by_user_id :bigint
|
||||
# template_id :bigint not null
|
||||
# id :bigint not null, primary key
|
||||
# deleted_at :datetime
|
||||
# template_fields :text
|
||||
# template_schema :text
|
||||
# template_submitters :text
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# created_by_user_id :bigint
|
||||
# template_id :bigint not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
@@ -27,5 +30,9 @@ class Submission < ApplicationRecord
|
||||
|
||||
has_many :submitters, dependent: :destroy
|
||||
|
||||
serialize :template_fields, JSON
|
||||
serialize :template_schema, JSON
|
||||
serialize :template_submitters, JSON
|
||||
|
||||
scope :active, -> { where(deleted_at: nil) }
|
||||
end
|
||||
Reference in new issue
Block a user