Sha256: 29e22f95fff94ebd5f3cbf956b64bd5acc2c02ba26ab289376d2808c7abb7eb3
Contents?: true
Size: 365 Bytes
Versions: 56
Compression:
Stored size: 365 Bytes
Contents
class ChangePartTitlesToTitleizedVersionForNewFormat < ActiveRecord::Migration def self.up PagePart.all.each do |page_part| page_part.update_attribute(:title, page_part.title.titleize) end end def self.down PagePart.all.each do |page_part| page_part.update_attribute(:title, page_part.title.downcase.gsub(" ", "_")) end end end
Version data entries
56 entries across 56 versions & 2 rubygems