Explorar el Código

Attempt to fix connection pooling issues

Andrew Swistak hace 5 años
padre
commit
da7e926f6d
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      bot.rb

+ 2 - 1
bot.rb

@@ -34,7 +34,8 @@ ActiveRecord::Base.establish_connection(
   host: db_config.fetch('host') { 'localhost' },
   database: db_config['database'],
   user: db_config['user'],
-  password: db_config['password']
+  password: db_config['password'],
+  pool: 5
 )
 
 Dir['app/**/*.rb'].each { |f| require File.join(File.expand_path(__dir__), f) }