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

Version Path
thecore_backend_commons-3.0.6 lib/patches/postgresql_drop_replacement.rb
thecore_backend_commons-3.0.5 lib/patches/postgresql_drop_replacement.rb
thecore_backend_commons-3.0.4 lib/patches/postgresql_drop_replacement.rb
thecore_backend_commons-3.0.3 lib/patches/postgresql_drop_replacement.rb
thecore_backend_commons-3.0.0 lib/patches/postgresql_drop_replacement.rb
thecore_backend_commons-2.4.2 lib/patches/postgresql_drop_replacement.rb
thecore_backend_commons-2.4.1 lib/patches/postgresql_drop_replacement.rb
thecore_backend_commons-2.4.0 lib/patches/postgresql_drop_replacement.rb
thecore_backend_commons-2.3.10 lib/patches/postgresql_drop_replacement.rb
thecore_backend_commons-2.3.9 lib/patches/postgresql_drop_replacement.rb
thecore_backend_commons-2.3.8 lib/patches/postgresql_drop_replacement.rb
thecore_backend_commons-2.3.7 lib/patches/postgresql_drop_replacement.rb
thecore_backend_commons-2.3.6 lib/patches/postgresql_drop_replacement.rb