-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Amplia tabla personas para importar aportantes. Closes #222
- Loading branch information
Nombre Usuario
committed
Aug 28, 2023
1 parent
953d4b1
commit 77f9aa6
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |