Put current conference in url #14

Merged
AndrewRadev merged 4 commits from conference-slug-in-url into 2.0 2015-07-12 11:32:03 +03:00
1 changed files with 5 additions and 2 deletions
Showing only changes of commit 08bbd1ffa1 - Show all commits

View File

@ -6,7 +6,10 @@ end
class PopulateConferenceIdInPersonalProfiles < ActiveRecord::Migration
def change
conference = Conference.first!
PersonalProfile.where(conference_id: nil).update_all(conference_id: conference.id)
conference = Conference.first
if conference
PersonalProfile.where(conference_id: nil).update_all(conference_id: conference.id)
end
end
end