Добавление миграций БД и моделей
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class Organization < ApplicationRecord
|
||||
has_many :yearly_files, dependent: :destroy
|
||||
has_many :financial_statements, through: :yearly_files
|
||||
|
||||
validates :inn, presence: true
|
||||
end
|
||||
Reference in New Issue
Block a user