Sha256: 93e9f85e52a9c740bbb1996ed0f3742251fd18f96eef4d153605c5514b7a0afd
Contents?: true
Size: 676 Bytes
Versions: 3
Compression:
Stored size: 676 Bytes
Contents
module Msip module Concerns module Models module Etiqueta extend ActiveSupport::Concern include Msip::Basica included do self.table_name = 'msip_etiqueta' has_and_belongs_to_many :municipio, class_name: 'Msip::Municipio', foreign_key: 'etiqueta_id', association_foreign_key: 'municipio_id', join_table: 'msip_etiqueta_municipio' validates :nombre, presence: true, allow_blank: false validates :fechacreacion, presence: true, allow_blank: false validates :observaciones, length: { maximum: 500 } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
msip-2.2.0.alfa3 | lib/msip/concerns/models/etiqueta.rb |
msip-2.2.0.alfa2 | lib/msip/concerns/models/etiqueta.rb |
msip-2.2a2 | lib/msip/concerns/models/etiqueta.rb |