mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 23:03:00 +08:00
6 lines
185 B
Ruby
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
|