2018-03-06 13:44:29 +01:00
|
|
|
class RNAInformation < ApplicationRecord
|
2015-12-11 11:05:38 +01:00
|
|
|
belongs_to :entreprise
|
2016-01-20 10:34:22 +01:00
|
|
|
|
|
|
|
validates :association_id, presence: true, allow_blank: false, allow_nil: false
|
2018-02-21 16:29:22 +01:00
|
|
|
|
|
|
|
def rna=(id)
|
|
|
|
write_attribute(:association_id, id)
|
|
|
|
end
|
2015-12-11 11:05:38 +01:00
|
|
|
end
|