mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 07:42:32 -05:00
adjust migration
This commit is contained in:
1 parent
4332b4ebb8
commit
90d86b58c2
6 files changed
+48
-30
No files matched your search
@@ -17,11 +17,17 @@
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_completed_submitters_on_account_id (account_id)
|
||||
# index_completed_submitters_on_account_id (account_id)
|
||||
# index_completed_submitters_on_submitter_id (submitter_id)
|
||||
#
|
||||
class CompletedSubmitter < ApplicationRecord
|
||||
belongs_to :submitter
|
||||
belongs_to :submission
|
||||
belongs_to :account
|
||||
belongs_to :template
|
||||
|
||||
has_many :completed_documents, dependent: :destroy,
|
||||
primary_key: :submitter_id,
|
||||
foreign_key: :submitter_id,
|
||||
inverse_of: :submitter
|
||||
end
|
||||
Reference in new issue
Block a user