Sha256: 44970b732bc9d17a2b966249fd490456df9d89a8b57539e47bf1139f77a08086

Contents?: true

Size: 509 Bytes

Versions: 4

Compression:

Stored size: 509 Bytes

Contents

class UseMonoHierarchyInsteadOfPolyHierarchy < ActiveRecord::Migration[4.2]
  def self.up
    ActiveRecord::Base.transaction do
      execute "UPDATE concept_relations SET type = 'Concept::Relation::SKOS::Broader::Mono' WHERE type = 'Concept::Relation::SKOS::Broader::Poly'"
    end
  end

  def self.down
    ActiveRecord::Base.transaction do
      execute "UPDATE concept_relations SET type = 'Concept::Relation::SKOS::Broader::Poly' WHERE type = 'Concept::Relation::SKOS::Broader::Mono'"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
iqvoc-4.14.5 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-4.14.4 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-4.13.2 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb
iqvoc-4.13.0 db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb