Sha256: 63878e5171889b89f519ccda47291c458f33789a8748b8c8b0bd992cb801aaf1
Contents?: true
Size: 394 Bytes
Versions: 21
Compression:
Stored size: 394 Bytes
Contents
class FixCanonicalServerUrl < ActiveRecord::Migration class Blog < ActiveRecord::Base include BareMigration serialize :settings, Hash end def self.up unless $schema_generator Blog.find(:all).each do |b| b.settings['canonical_server_url'] = b.settings['canonical_server_url'].to_s.gsub(%r{/$},'') b.save end end end def self.down end end
Version data entries
21 entries across 21 versions & 1 rubygems