2013-02-06 03:16:51 +08:00
|
|
|
#!/usr/bin/env rake
|
2019-05-03 06:17:27 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
# 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
|
2013-04-10 19:26:55 +08:00
|
|
|
|
|
|
|
# this prevents crashes when migrating a database in production in certain
|
|
|
|
# PostgreSQL configuations when trying to create structure.sql
|
|
|
|
Rake::Task["db:structure:dump"].clear if Rails.env.production?
|