|
| 1 | +# This file is auto-generated from the current state of the database. Instead |
| 2 | +# of editing this file, please use the migrations feature of Active Record to |
| 3 | +# incrementally modify your database, and then regenerate this schema definition. |
| 4 | +# |
| 5 | +# Note that this schema.rb definition is the authoritative source for your |
| 6 | +# database schema. If you need to create the application database on another |
| 7 | +# system, you should be using db:schema:load, not running all the migrations |
| 8 | +# from scratch. The latter is a flawed and unsustainable approach (the more migrations |
| 9 | +# you'll amass, the slower it'll run and the greater likelihood for issues). |
| 10 | +# |
| 11 | +# It's strongly recommended that you check this file into your version control system. |
| 12 | + |
| 13 | +ActiveRecord::Schema.define(version: 0) do |
| 14 | + |
| 15 | + # These are extensions that must be enabled in order to support this database |
| 16 | + enable_extension "plpgsql" |
| 17 | + |
| 18 | + create_table "ingredients", force: true do |t| |
| 19 | + t.text "name", null: false |
| 20 | + t.integer "recipe_frequency", default: 0, null: false |
| 21 | + t.integer "recipe_ids", default: [], null: false, array: true |
| 22 | + end |
| 23 | + |
| 24 | + create_table "recipes", force: true do |t| |
| 25 | + t.text "source_uri", null: false |
| 26 | + t.text "source_ingredients", default: [], null: false, array: true |
| 27 | + t.integer "ingredient_ids", default: [], null: false, array: true |
| 28 | + t.boolean "has_been_scraped", default: false, null: false |
| 29 | + t.text "title" |
| 30 | + t.text "description" |
| 31 | + end |
| 32 | + |
| 33 | +end |
0 commit comments