Sha256: 8877ecdb71d1d9d4850949a707b4ccbcf8e1bbb9e15b93782e311381887474ce
Contents?: true
Size: 316 Bytes
Versions: 16
Compression:
Stored size: 316 Bytes
Contents
class AddParticipantIdToSocialNetworkingSharedItemsDataMigration < ActiveRecord::Migration def change SocialNetworking::SharedItem.where(participant_id: nil).each do |shared_item| if shared_item.item shared_item.update(participant_id: shared_item.item.participant.id) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems