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: 007_create_deadline_types.rb
    path of file: ./repos/expertiza/db/migrate_save
    
    the code of the file until where you have to start completion: class CreateDe
    
  def self.up
    create_table :deadline_types do |t|
      t.column :name, :string, limit: 32
    end
    deadline_type = DeadlineType.create(name: 'submission')
    deadline_type.save
    deadline_type = DeadlineType.create(name: 'review')
    deadline_type.save
    deadline_type = DeadlineType.create(name: 'resubmission')
    deadline_type.save
    deadline_type = DeadlineType.create(name: 'rereview') # this means permission to review a version that has been submitted since the most recent review deadline
    deadline_type.save
    deadline_type = DeadlineType.create(name: 'review_of_review')
    deadline_type.save
  end