Create CFP records for existing Conference records

This commit is contained in:
Andrew Radev 2015-05-24 16:11:55 +03:00
parent cddab7a27e
commit 8921b6464a
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
class Conference < ActiveRecord::Base; end
class CallForParticipation < ActiveRecord::Base; end
class CreateCallForParticipationRecords < ActiveRecord::Migration
def change
Conference.all.each do |c|
CallForParticipation.create!(conference_id: c.id)
end
end
end