fixup! instalar groupdate
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
25d47ff543
commit
31804ef650
1 changed files with 2 additions and 2 deletions
|
@ -3,12 +3,12 @@
|
||||||
# Instala las funciones de agrupamiento por fecha
|
# Instala las funciones de agrupamiento por fecha
|
||||||
class Groupdate < ActiveRecord::Migration[6.1]
|
class Groupdate < ActiveRecord::Migration[6.1]
|
||||||
def up
|
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)
|
ActiveRecord::Base.connection.execute(groupdate)
|
||||||
end
|
end
|
||||||
|
|
||||||
def down
|
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)
|
ActiveRecord::Base.connection.execute(groupdate)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue