Sha256: c1210c7f032641038ec3f5fd975e3a5dfd72f68075b844d3e492ecca63bad9f1
Contents?: true
Size: 443 Bytes
Versions: 13
Compression:
Stored size: 443 Bytes
Contents
# module ActiveRecord # module Tasks # class PostgreSQLDatabaseTasks # # Allows drop on DBs currently in use. # def drop # establish_master_connection # connection.select_all "select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where datname='#{configuration['database']}' AND state='idle';" # connection.drop_database configuration['database'] # end # end # end # end
Version data entries
13 entries across 13 versions & 1 rubygems