fixup! instalar groupdate
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2022-03-24 10:29:41 -03:00
parent 25d47ff543
commit 31804ef650

View file

@ -3,12 +3,12 @@
# Instala las funciones de agrupamiento por fecha
class Groupdate < ActiveRecord::Migration[6.1]
def up
groupdate = File.read(Rails.root.join('db', 'groupdate', 'postgresql', 'install.sql')).sub(/(BEGIN|COMMIT);/, ''
groupdate = File.read(Rails.root.join('db', 'groupdate', 'postgresql', 'install.sql')).sub(/(BEGIN|COMMIT);/, '')
ActiveRecord::Base.connection.execute(groupdate)
end
def down
groupdate = File.read(Rails.root.join('db', 'groupdate', 'postgresql', 'uninstall.sql')).sub(/(BEGIN|COMMIT);/, ''
groupdate = File.read(Rails.root.join('db', 'groupdate', 'postgresql', 'uninstall.sql')).sub(/(BEGIN|COMMIT);/, '')
ActiveRecord::Base.connection.execute(groupdate)
end
end