Skip to content

Instantly share code, notes, and snippets.

@myun2
Created November 20, 2019 12:32
Show Gist options
  • Save myun2/95a4789641bcb7b20a8f58adeb0a8ef6 to your computer and use it in GitHub Desktop.
Save myun2/95a4789641bcb7b20a8f58adeb0a8ef6 to your computer and use it in GitHub Desktop.
config = Rails.application.config.database_configuration[Rails.env].dup
config['pool'] = 20
ActiveRecord::Base.establish_connection(config)
ActiveRecord::Base.connection_pool.size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment