Remove temporary Rake task (#7842)

This commit is contained in:
Michael Kohl 2020-05-14 16:22:06 +07:00 committed by GitHub
parent 7117d7c202
commit a49ae729a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,25 +0,0 @@
namespace :temporary do
namespace :classified_listings do
desc "Backfill social preview info for classified listings categories"
task backfill_social_preview_info: :environment do
info = {
"collabs": ["Collaborators Wanted", "#5ae8d9"],
"cfp": ["Call For Proposal", "#f58f8d"],
"forhire": ["Available For Hire", "#b78cf4"],
"education": ["Education", "#5aabe8"],
"jobs": ["Now Hiring", "#53c3ad"],
"mentors": ["Offering Mentorship", "#a69ee8"],
"mentees": ["Looking For Mentorship", "#88aedb"],
"forsale": ["Stuff For Sale", "#d0adfb"],
"events": ["Upcoming Event", "#f8b3d0"],
"misc": ["Miscellaneous", "#6393ff"],
"products": ["Products & Tools", "#5ae8d9"]
}
info.each do |slug, (description, color)|
ClassifiedListingCategory.
where(slug: slug).
update(social_preview_description: description, social_preview_color: color)
end
end
end
end