Commit f48fc3c6 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Add a rake task that drops all tables

parent 4af38885
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment