Добавление миграций БД и моделей

This commit is contained in:
Dmitry
2026-03-12 11:30:22 +03:00
parent e55ecb7d29
commit c016d6a319
11 changed files with 148 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
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