Commit 592018e1 authored by AlanPCS's avatar AlanPCS
Browse files

Fix little production details


Signed-off-by: default avatarAlanPCS <apcs11@inf.ufpr.br>
parent a1245915
Pipeline #3927 skipped
......@@ -639,22 +639,22 @@ puts occupation_id
end
# Main tables
#tmibges_cities()
#tufibges_states()
#tcbo_occupations()
#prefeituras_city_halls()
#sectors()
#tipo_situacoes_situations()
#tipo_atendimentos_service_types()
#cidadaos_profissionais_citizens()
#profissionais_professionals()
#bloqueios_blocks()
#orgaos_service_places()
#escalas_shifts()
#agendamentos_schedules()
tmibges_cities()
tufibges_states()
tcbo_occupations()
prefeituras_city_halls()
sectors()
tipo_situacoes_situations()
tipo_atendimentos_service_types()
cidadaos_profissionais_citizens()
profissionais_professionals()
bloqueios_blocks()
orgaos_service_places()
escalas_shifts()
agendamentos_schedules()
# Relations
#profissionais_locais_atendimento_professional_service_places()
#locais_atendimento_tipo_atendimentos_service_types_service_places()
profissionais_locais_atendimento_professional_service_places()
locais_atendimento_tipo_atendimentos_service_types_service_places()
occupations_fix()
......
......@@ -9,9 +9,58 @@ ActiveRecord::Base.configurations["db5"] = {
pool: 5,
host: "c3sldatabase.c3sl.ufpr.br",
username: "agendador",
password: "123"
password: "SenhaEmProdução"
}
# class Agendamento < ActiveRecord::Base
# establish_connection "db4.1.1"
# end
# class Bloqueio < ActiveRecord::Base
# establish_connection "db4.1.1"
# end
# class Cidadao < ActiveRecord::Base
# establish_connection "db4.1.1"
# end
# class Escala < ActiveRecord::Base
# establish_connection "db4.1.1"
# end
# class Orgao < ActiveRecord::Base
# establish_connection "db4.1.1"
# end
# class Prefeitura < ActiveRecord::Base
# establish_connection "db4.1.1"
# end
# class Profissional < ActiveRecord::Base
# establish_connection "db4.1.1"
# end
# class Report < ActiveRecord::Base
# establish_connection "db4.1.1"
# end
# class Solicitation < ActiveRecord::Base
# establish_connection "db4.1.1"
# end
# class Tcbo < ActiveRecord::Base
# establish_connection "db4.1.1"
# end
# class Tconselho < ActiveRecord::Base
# establish_connection "db4.1.1"
# end
# class TipoAcao < ActiveRecord::Base
# establish_connection "db4.1.1"
# end
# class TipoAtendimento < ActiveRecord::Base
# establish_connection "db4.1.1"
# end
# class TipoSituacao < ActiveRecord::Base
# establish_connection "db4.1.1"
# end
# class Tmibge < ActiveRecord::Base
# establish_connection "db4.1.1"
# end
# class Tufibge < ActiveRecord::Base
# establish_connection "db4.1.1"
# end
class Block < ActiveRecord::Base
$db5 = establish_connection "db5"
end
......@@ -74,7 +123,7 @@ class ServiceType < ActiveRecord::Base
has_and_belongs_to_many :service_types, :join_table => "service_types_service_places"
has_many :professionals_service_places
has_many :professionals, :join_table => "professionals_service_places", :through => "professionals_service_places"
has_many :shifts
has_many :shiftsload_models.rb
has_many :schedules
belongs_to :city
belongs_to :city_hall
......@@ -93,4 +142,4 @@ end
#end
class State < ActiveRecord::Base
establish_connection "db5"
end
\ No newline at end of file
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment