Topic.where("title LIKE '%T8/2024%'").find_each do |topic|
topic.title.gsub!(/T8/2024/,"T9/2024")
topic.fancy_title.gsub!(/T8/2024/,"T9/2024")
topic.slug.gsub!(/T8/2024/,"T9/2024")
puts topic.title
begin
topic.save!
rescue
puts "oops, something broke."
end
end
Topic.where("title LIKE '%T8/2024%'").find_each do |topic|
topic.title.gsub!("T8/2024","T9/2024")
topic.fancy_title.gsub!(/T8/2024","T9/2024")
topic.slug.gsub!("T8/2024","T9/2024")
puts topic.title
begin
topic.save!
rescue
puts "oops, something broke."
end
end
Topic.where("title LIKE '%T8/2024%'").find_each do |topic|
topic.title.gsub!(/T8\/2024/,"T9/2024")
topic.fancy_title.gsub!(/T8\/2024/,"T9/2024")
topic.slug.gsub!(/T8\/2024/,"T9/2024")
puts topic.title
begin
topic.save!
rescue
puts "oops, something broke."
end
end