Commit f48fc3c6cbcc0cbcb34cefa2025434c09cf57e04

Authored by Jacob Vosmaer
1 parent 4af38885

Add a rake task that drops all tables

Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
lib/tasks/gitlab/db/drop_all_tables.rake 0 → 100644
... ... @@ -0,0 +1,10 @@
  1 +namespace :gitlab do
  2 + namespace :db do
  3 + task drop_all_tables: :environment do
  4 + connection = ActiveRecord::Base.connection
  5 + connection.tables.each do |table|
  6 + connection.drop_table(table)
  7 + end
  8 + end
  9 + end
  10 +end
... ...