Remove temporary Rake task (#7842)
This commit is contained in:
parent
7117d7c202
commit
a49ae729a0
1 changed files with 0 additions and 25 deletions
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue