mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 07:36:41 +10:00
Add a rake task that drops all tables
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user