Commit 897f1803 authored by Jeroen Nijhof's avatar Jeroen Nijhof

Make sure there is a connection before using ActiveRecord

parent 9fdd605f
module Backup
class Manager
def pack
# Make sure there is a connection
ActiveRecord::Base.connection.reconnect!
# saving additional informations
s = {}
s[:db_version] = "#{ActiveRecord::Migrator.current_version}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment