class CreateSyllabuses < ActiveRecord::Migration
  def change
    create_table :syllabuses do |t|
      t.string :title
      t.text :description
      t.references :user

      t.timestamps
    end
    add_index :syllabuses, :user_id
  end
end
