Sha256: a1cd0422e72acaf0be6e886e2a5c3f4de5e81f78a456f2546c292716fc4dcc2b

Contents?: true

Size: 418 Bytes

Versions: 26

Compression:

Stored size: 418 Bytes

Contents

class FixCollectionType < ActiveRecord::Migration
  def up
    execute "UPDATE concepts SET type='Collection::SKOS::Unordered' WHERE type='Collection::Unordered'"
    execute "UPDATE collection_members SET type='Collection::Member::SKOS::Base' WHERE type='Collection::Member::Concept'"
  end

  def down
    execute "UPDATE concepts SET type='Collection::Unordered' WHERE type='Collection::SKOS::Unordered'"
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
iqvoc-4.12.1 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.12.0 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.11.1 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.11.0 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.10.0 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.9.0 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.3.3 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.8.2 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.8.1 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.8.0 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.7.0 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.6.1 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.5.2 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.6.0 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.5.1 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.5.0 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.4.0 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.3.2 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.3.1 db/migrate/20130227145825_fix_collection_type.rb
iqvoc-4.3.0 db/migrate/20130227145825_fix_collection_type.rb