Skip to content

Commit

Permalink
Mejora migracion
Browse files Browse the repository at this point in the history
  • Loading branch information
vtamara committed Oct 7, 2024
1 parent be8e132 commit 49340e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db/migrate/20241005013833_agrega_psei.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
class AgregaPsei < ActiveRecord::Migration[7.2]
def up
debugger
if Sivel2Gen::Presponsable.where(id: 39).count == 0 ||
Sivel2Gen::Presponsable.find(39).nombre != 'Polo Estatal'
Sivel2Gen::Presponsable.find(39).nombre.split.map(&:capitalize).join(" ") != 'Polo Estatal'
puts "Presunto responsable 39 no es Polo Estatal";
exit 1
end
Expand Down

0 comments on commit 49340e6

Please sign in to comment.