Sha256: f2d3ddeadb5039c4a4d9e875b3173dfb0ef397386025358d235cc6447119b9d1

Contents?: true

Size: 302 Bytes

Versions: 30

Compression:

Stored size: 302 Bytes

Contents

class CorrectVclassKpath < ActiveRecord::Migration
  def self.up
    klasses = VirtualClass.find(:all)
    klasses.each do |vclass|
      Node.connection.execute "UPDATE nodes SET kpath = #{Node.connection.quote(vclass.kpath)} WHERE vclass_id = #{vclass[:id]}"
    end
  end

  def self.down
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
zena-1.2.8 db/fix/024_correct_vclass_kpath.rb
zena-1.2.7 db/fix/024_correct_vclass_kpath.rb
zena-1.2.6 db/fix/024_correct_vclass_kpath.rb
zena-1.2.5 db/fix/024_correct_vclass_kpath.rb
zena-1.2.4 db/fix/024_correct_vclass_kpath.rb
zena-1.2.3 db/fix/024_correct_vclass_kpath.rb
zena-1.2.2 db/fix/024_correct_vclass_kpath.rb
zena-1.2.1 db/fix/024_correct_vclass_kpath.rb
zena-1.2.0 db/fix/024_correct_vclass_kpath.rb
zena-1.1.3 db/fix/024_correct_vclass_kpath.rb
zena-1.1.2 db/fix/024_correct_vclass_kpath.rb
zena-1.1.1 db/fix/024_correct_vclass_kpath.rb
zena-1.1.0 db/fix/024_correct_vclass_kpath.rb
zena-1.0.0 db/fix/024_correct_vclass_kpath.rb
zena-1.0.0.rc3 db/fix/024_correct_vclass_kpath.rb
zena-1.0.0.rc2 db/fix/024_correct_vclass_kpath.rb
zena-1.0.0.rc1 db/fix/024_correct_vclass_kpath.rb
zena-0.16.9 db/migrate/024_correct_vclass_kpath.rb
zena-0.16.8 db/migrate/024_correct_vclass_kpath.rb
zena-0.16.7 db/migrate/024_correct_vclass_kpath.rb