11 lines
222 B
Ruby
11 lines
222 B
Ruby
class YearlyFile < ApplicationRecord
|
|
belongs_to :organization
|
|
belongs_to :auditor, optional: true
|
|
|
|
has_many :financial_statements, dependent: :destroy
|
|
|
|
has_one_attached :file
|
|
|
|
validates :year, presence: true
|
|
end
|