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