Welcome to mirror list, hosted at ThFree Co, Russian Federation.

drop_all_tables.rake « db « gitlab « tasks « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a66030ab93a9e96f3cc1ac6cb3fc7447d36b4a8f (plain)
1
2
3
4
5
6
7
8
9
10
namespace :gitlab do
  namespace :db do
    task drop_all_tables: :environment do
      connection = ActiveRecord::Base.connection
      connection.tables.each do |table|
        connection.drop_table(table)
      end
    end
  end
end