7 lines
180 B
Ruby
7 lines
180 B
Ruby
class Organization < ApplicationRecord
|
|
has_many :yearly_files, dependent: :destroy
|
|
has_many :financial_statements, through: :yearly_files
|
|
|
|
validates :inn, presence: true
|
|
end
|