Skip to content

Commit

Permalink
Amplia tabla personas para importar aportantes. Closes #222
Browse files Browse the repository at this point in the history
  • Loading branch information
Nombre Usuario committed Aug 28, 2023
1 parent 953d4b1 commit 77f9aa6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions db/migrate/20230827222532_completa_cargos.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
class CompletaCargos < ActiveRecord::Migration[7.0]
def up
execute <<-SQL
INSERT INTO cargoestado (id, nombre, fechacreacion, created_at,
updated_at) VALUES
(42, 'Agente de Producción', '2023-08-27', '2023-08-27', '2023-08-27');
INSERT INTO cargoestado (id, nombre, fechacreacion, created_at,
updated_at) VALUES
(43, 'Coordinador(a) de Bienestar', '2023-08-27', '2023-08-27', '2023-08-27');
INSERT INTO cargoestado (id, nombre, fechacreacion, created_at,
updated_at) VALUES
(44, 'Profesional', '2023-08-27', '2023-08-27', '2023-08-27');
SQL
end

def down
execute <<-SQL
DELETE FROM cargoestado WHERE id>=42 AND id<=44;
SQL
end
end

0 comments on commit 77f9aa6

Please sign in to comment.