Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vtamara committed Jul 12, 2023
1 parent 9e70d57 commit fbdf758
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions db/migrate/20230712163859_agrega_perfiles.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
class AgregaPerfiles < ActiveRecord::Migration[7.0]
def up
if (Msip::Perfilorgsocial.all.count == 0) then
execute <<-SQL
INSERT INTO public.msip_perfilorgsocial (id, nombre, observaciones, fechacreacion, fechadeshabilitacion, created_at, updated_at) VALUES (1, 'SIN INFORMACIÓN', NULL, '2009-09-11', NULL, '2018-07-24 00:00:00', '2018-07-24 00:00:00');
INSERT INTO public.msip_perfilorgsocial (id, nombre, observaciones, fechacreacion, fechadeshabilitacion, created_at, updated_at) VALUES (2, 'FUNCIONARIO/A O CONTRATISTA DE LA ORGANIZACIÓN', NULL, '2009-09-11', NULL, '2018-07-24 00:00:00', '2018-07-24 00:00:00');
INSERT INTO public.msip_perfilorgsocial (id, nombre, observaciones, fechacreacion, fechadeshabilitacion, created_at, updated_at) VALUES (3, 'DIRECTIVO/A DE LA ORGANIZACIÓN', NULL, '2009-09-11', NULL, '2018-07-24 00:00:00', '2018-07-24 00:00:00');
INSERT INTO public.msip_perfilorgsocial (id, nombre, observaciones, fechacreacion, fechadeshabilitacion, created_at, updated_at) VALUES (5, 'MIEMBRO DE LA ORGANIZACIÓN', NULL, '2009-09-11', NULL, '2018-07-24 00:00:00', '2018-07-24 00:00:00');
SQL
end
end
def down
end
end

0 comments on commit fbdf758

Please sign in to comment.