ActiveRecord Migrations

Flashcard 2 of 6

What is missing from this migration?

class CreateProjects < ActiveRecord::Migration
  def change
    create_table :projects do |t|
      t.string :title
      t.boolean :complete

      t.timestamps null: false
    end
  end
end

Answer:

Reveal Answer