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