Sha256: ccb66c13da7a27a5266bd2bd9df3fd5c93b38f047b0d5838f4a8e8b3418662e0
Contents?: true
Size: 321 Bytes
Versions: 1
Compression:
Stored size: 321 Bytes
Contents
#encoding: utf-8 class UnidadeSaude < ApplicationRecord has_many :consultas has_many :agendamentos has_and_belongs_to_many :profissionais belongs_to :cidade validates :codigo_cnes, uniqueness: true def self.select return self.all.collect { |unidade| [ unidade.nome, unidade.id ] } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-sabia-1.0.1 | app/models/unidade_saude.rb |