58 lines
2.0 KiB
Ruby
58 lines
2.0 KiB
Ruby
# encoding: UTF-8
|
|
# This file is auto-generated from the current state of the database. Instead
|
|
# of editing this file, please use the migrations feature of Active Record to
|
|
# incrementally modify your database, and then regenerate this schema definition.
|
|
#
|
|
# Note that this schema.rb definition is the authoritative source for your
|
|
# database schema. If you need to create the application database on another
|
|
# system, you should be using db:schema:load, not running all the migrations
|
|
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
|
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
|
#
|
|
# It's strongly recommended that you check this file into your version control system.
|
|
|
|
ActiveRecord::Schema.define(version: 20160113002615) do
|
|
|
|
create_table "ingredients", force: :cascade do |t|
|
|
t.string "name"
|
|
t.string "density"
|
|
t.text "notes"
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "recipe_ingredients", force: :cascade do |t|
|
|
t.integer "ingredient_id"
|
|
t.integer "recipe_id"
|
|
t.string "custom_name"
|
|
t.string "custom_density"
|
|
t.string "quantity"
|
|
t.string "units"
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
add_index "recipe_ingredients", ["recipe_id"], name: "index_recipe_ingredients_on_recipe_id"
|
|
|
|
create_table "recipe_steps", force: :cascade do |t|
|
|
t.integer "recipe_id"
|
|
t.integer "number"
|
|
t.text "step"
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
add_index "recipe_steps", ["recipe_id"], name: "index_recipe_steps_on_recipe_id"
|
|
|
|
create_table "recipes", force: :cascade do |t|
|
|
t.string "name"
|
|
t.text "source"
|
|
t.integer "yields"
|
|
t.integer "total_time"
|
|
t.integer "active_time"
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
end
|