9 lines
216 B
Ruby
9 lines
216 B
Ruby
class RNAInformation < ApplicationRecord
|
|
belongs_to :entreprise
|
|
|
|
validates :association_id, presence: true, allow_blank: false, allow_nil: false
|
|
|
|
def rna=(id)
|
|
write_attribute(:association_id, id)
|
|
end
|
|
end
|