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