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: 20150716210112_create_teaching_plans.rb
    path of file: ./repos/i-diario/db/migrate
    
    the code of the file until where you have to start completion: class CreateTeachingPlans < ActiveRecord::Migration[4.2]
  def change
    create_table :teaching_plans do |t|
      t.integer :classroom_id, null: false
      t.integer :discipline_id, null: false
      t.integer :school_calendar_step_id, null: false
      t.text :objectives
      t.text :content
      t.text :methodology
      t.text :evaluation
      t.text :references

      t.timestamps
    end

    add_index :teaching_plans, :cl
    
  def change
    create_table :teaching_plans do |t|
      t.integer :classroom_id, null: false
      t.integer :discipline_id, null: false
      t.integer :school_calendar_step_id, null: false
      t.text :objectives
      t.text :content
      t.text :methodology
      t.text :evaluation
      t.text :references

      t.timestamps
    end

    add_index :teaching_plans, :classroom_id
    add_index :teaching_plans, :discipline_id
    add_index :teaching_plans, :school_calendar_step_id

    add_foreign_key :teaching_plans, :classrooms
    add_foreign_key :teaching_plans, :disciplines
    add_foreign_key :teaching_plans, :school_calendar_steps
  end