You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: 030_create_resubmission_times.rb
    path of file: ./repos/expertiza/db/migrate
    
    the code of the file until where you have to start completion: class CreateResubmissionTimes < ActiveRecord::Migration[4.2]
  def self.up
    create_table 'resubmission_times', force: true do |t|
      t.column 'participant_id', :integer
      t.column 'resubmitted_at', :datetime
    end

    add_index 'resubmission_times', ['
    
  def self.up
    create_table 'resubmission_times', force: true do |t|
      t.column 'participant_id', :integer
      t.column 'resubmitted_at', :datetime
    end

    add_index 'resubmission_times', ['participant_id'], name: 'fk_resubmission_times_participants'

    execute "alter table resubmission_times
               add constraint fk_resubmission_times_participants
               foreign key (participant_id) references participants(id)"
  end