Create CFP records for existing Conference records
This commit is contained in:
parent
cddab7a27e
commit
8921b6464a
@ -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
|
Loading…
x
Reference in New Issue
Block a user