Sha256: 7400dc67727da2b9380e96411b9d2b99e954d6031bb36ce5360763e5ef5fad1c

Contents?: true

Size: 496 Bytes

Versions: 30

Compression:

Stored size: 496 Bytes

Contents

class UseMonoHierarchyInsteadOfPolyHierarchy < ActiveRecord::Migration
  def self.up
    ActiveRecord::Base.transaction do
      Concept::Relation::Base.update_all("type = 'Concept::Relation::SKOS::Broader::Mono'", :type => 'Concept::Relation::SKOS::Broader::Poly')
    end
  end

  def self.down
    ActiveRecord::Base.transaction do
      Concept::Relation::Base.update_all("type = 'Concept::Relation::SKOS::Broader::Poly'", :type => 'Concept::Relation::SKOS::Broader::Mono')
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
iqvoc-3.2.11 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-3.2.10 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-3.2.9 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-4.0.6 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-4.0.5 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-4.0.4 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-4.0.3 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-4.0.2 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-3.2.8 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-4.0.1 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-4.0.0 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-3.5.7 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-3.5.6 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-3.5.5 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-3.5.4 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-3.2.7 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-3.5.3 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-3.5.2 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-3.5.1 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-3.5.0 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb