[Rails] Wine cellar inventory tracker.
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
# This file is the source Rails uses to define your schema when running `bin/rails
6
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
7
# be faster and is potentially less error prone than running all of your
8
# migrations from scratch. Old migrations may fail to apply correctly if those
9
# migrations use external dependencies or application code.
10
#
11
# It's strongly recommended that you check this file into your version control system.
12
13
ActiveRecord::Schema[7.2].define(version: 2024_10_20_144326) do
14
create_table "wines", force: :cascade do |t|
15
t.string "name"
16
t.integer "year"
17
t.string "variety"
18
t.string "region"
19
t.decimal "price"
20
t.integer "stock"
21
t.text "notes"
22
t.datetime "created_at", null: false
23
t.datetime "updated_at", null: false
24
end
25
end
26