From 7a164cf5d47f00ffa29790a678ecd94ddf7258aa Mon Sep 17 00:00:00 2001 From: Nombre Usuario Date: Mon, 13 Nov 2023 18:43:30 -0500 Subject: [PATCH] Completa --- .../20231113091147_completa_para_imprj.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 db/migrate/20231113091147_completa_para_imprj.rb diff --git a/db/migrate/20231113091147_completa_para_imprj.rb b/db/migrate/20231113091147_completa_para_imprj.rb new file mode 100644 index 0000000..2934f80 --- /dev/null +++ b/db/migrate/20231113091147_completa_para_imprj.rb @@ -0,0 +1,17 @@ +class CompletaParaImprj < ActiveRecord::Migration[7.0] + def up + execute <<-SQL + INSERT INTO regionpago (id, nombre, fechacreacion, created_at, updated_at) VALUES + (33, 'MAGDALENA', '2023-11-13', '2023-11-13', '2023-11-13'); + INSERT INTO regionpago (id, nombre, fechacreacion, created_at, updated_at) VALUES + (34, 'BOYACA', '2023-11-13', '2023-11-13', '2023-11-13'); + INSERT INTO regionpago (id, nombre, fechacreacion, created_at, updated_at) VALUES + (35, 'META', '2023-11-13', '2023-11-13', '2023-11-13'); + SQL + end + def down + execute <<-SQL + DELETE FROM regionpago WHERE id>=33 AND id<=35; + SQL + end +end