class CreateDiaryEntries < ActiveRecord::Migration[5.0]
  def change
    create_table :diary_entries do |t|
      t.integer :diary_id, null: false
      t.string :title
      t.date :date, null: false
      t.text :content
      t.boolean :public, default: true

      t.timestamps
    end
  end
end
