lib/validations.rb in mogbak-0.1.2 vs lib/validations.rb in mogbak-0.2.0
- old
+ new
@@ -43,10 +43,10 @@
#Connect to sqlite metadata db
#@param [String] raise_msg exception to raise if we cannot connect. if set to nil no exception will be rasied
#@return [Bool]
def connect_sqlite(raise_msg = nil)
begin
- ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => "#{$backup_path}/db.sqlite", :timeout => 1000)
+ ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => "#{$backup_path}/db.sqlite", :timeout => 10000)
rescue Exception => e
raise raise_msg if raise_msg
raise e if $debug
return false
end
\ No newline at end of file