2015-05-30 18:53:14 +03:00
|
|
|
class Conference < ActiveRecord::Base
|
|
|
|
end
|
|
|
|
|
|
|
|
class PersonalProfile < ActiveRecord::Base
|
|
|
|
end
|
|
|
|
|
|
|
|
class PopulateConferenceIdInPersonalProfiles < ActiveRecord::Migration
|
|
|
|
def change
|
2015-07-12 11:22:19 +03:00
|
|
|
conference = Conference.first
|
|
|
|
|
|
|
|
if conference
|
|
|
|
PersonalProfile.where(conference_id: nil).update_all(conference_id: conference.id)
|
|
|
|
end
|
2015-05-30 18:53:14 +03:00
|
|
|
end
|
|
|
|
end
|