socialforge/lib/tasks/gitlab_unused.rake

12 lines
302 B
Ruby
Raw Normal View History

namespace :gitlab do
desc "sync gitlab's commit acts to trustie"
task :unused => :environment do
begin
Project.where("id in (161,236,266)").update_all(:gpid => nil)
Repository.where("project_id in (161,236,266)").destroy_all
rescue Exception => e
puts e
end
end
end