Add a rake task that drops all tables

This commit is contained in:
Jacob Vosmaer
2014-03-28 13:37:09 +01:00
parent 4af38885df
commit f48fc3c6cb
+10
View File
@@ -0,0 +1,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