65164bf189
It's important that we don't perform pg_dumps against databases running behind pgbouncer. We had an old monkey-patch to prevent this, but following some [recent internal rails refactoring](https://github.com/rails/rails/commit/5488686851978c64346a0c03d2b6541cf2a94879), the patch no longer works. Instead, we can use the official `config.active_record.dump_schema_after_migration` option. Setting this to false in production is recommended by Rails, and is the default for newly generated Rails applications.
10 lines
305 B
Ruby
Executable File
10 lines
305 B
Ruby
Executable File
#!/usr/bin/env rake
|
|
# frozen_string_literal: true
|
|
|
|
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
|
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
|
|
|
require File.expand_path('../config/application', __FILE__)
|
|
|
|
Discourse::Application.load_tasks
|