Make sure there is a connection before using ActiveRecord
This commit is contained in:
parent
9fdd605fd2
commit
897f18032a
|
@ -1,6 +1,9 @@
|
|||
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}"
|
||||
|
|
Loading…
Reference in New Issue