Sha256: bcf2589bdd84769a7a7b7551126244d64666d5f2b49983aea41712982a4ff85c
Contents?: true
Size: 339 Bytes
Versions: 33
Compression:
Stored size: 339 Bytes
Contents
class AddVhashInNode < ActiveRecord::Migration def self.up add_column :nodes, :vhash, :text Site.all.each do |site| puts "===== rebuilding vhash for #{site.host} (#{Node.count(:conditions => "site_id = #{site.id}")} nodes)" site.rebuild_vhash end end def self.down remove_column :nodes, :vhash end end
Version data entries
33 entries across 33 versions & 1 rubygems