Sha256: 7e5a9822c9ffc5dffbf17ee9f54403a31d4f4cc5277735d068e385f9b500987d
Contents?: true
Size: 316 Bytes
Versions: 16
Compression:
Stored size: 316 Bytes
Contents
class PopulateProfilesForExistingParticipants < ActiveRecord::Migration def change Participant.all.each do |participant| if !SocialNetworking::Profile.where(participant_id: participant.id) SocialNetworking::Profile.create(participant_id: participant.id, active: true) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems