scinote-web/app/models/repository_date_value.rb
2017-05-16 15:27:36 +02:00

6 lines
185 B
Ruby

class RepositoryDateValue < ActiveRecord::Base
has_one :repository_cell, as: :value
accepts_nested_attributes_for :repository_cell
validates :repository_cell, presence: true
end