Skip to content
Snippets Groups Projects
Commit 686b1ccc authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

fixing postgres tasks

parent e410444b
No related branches found
No related tags found
No related merge requests found
module ActiveRecord
module Tasks
class PostgreSQLDatabaseTasks
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
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment