scinote-web/app/models/repository_date_value.rb

7 lines
185 B
Ruby
Raw Normal View History

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