No release in over a year
This gem adds a new rake task which terminates all the connections with the Rails app database.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

PgConnectionsTerminate

This gem adds a new rake task which terminates all the connections with the Rails app database. Database is selected based on the config/database.yml and the RAILS_ENV.

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add pg_connections_terminate

Usage

Run like any other Rails rake task:

$ bundle exec bin/rails db:connections:terminate RAILS_ENV=test

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/MichalZaporski/pg_connections_terminate.