Sha256: 38a32c8253fd73884ce2abfafa36f4e6aac71313976fbcd1ed4395c090cd1019
Contents?: true
Size: 382 Bytes
Versions: 2
Compression:
Stored size: 382 Bytes
Contents
module CurationConcerns module DataMigration class CollectionsMigration def self.run ::Collection.all.each do |collection| collection.members.each do |member| member.member_of_collections << collection member.save end collection.members = [] collection.save end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
curation_concerns-2.0.0 | lib/curation_concerns/data_migration/collections_migration.rb |
curation_concerns-2.0.0.rc2 | lib/curation_concerns/data_migration/collections_migration.rb |