Files
docuseal/app/models/completed_document.rb
T

23 lines
656 B
Ruby
Raw Normal View History

2024-10-22 22:29:24 +03:00
# frozen_string_literal: true
# == Schema Information
#
# Table name: completed_documents
#
# id :bigint not null, primary key
# sha256 :string not null
# created_at :datetime not null
# updated_at :datetime not null
# submitter_id :bigint not null
#
# Indexes
#
# index_completed_documents_on_sha256 (sha256)
# index_completed_documents_on_submitter_id (submitter_id)
#
class CompletedDocument < ApplicationRecord
2024-10-26 19:42:16 +03:00
belongs_to :submitter, optional: true
2024-10-22 23:40:30 +03:00
has_one :completed_submitter, primary_key: :submitter_id, inverse_of: :completed_documents, dependent: :destroy
2024-10-22 22:29:24 +03:00
end