# 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. # # This file is the source Rails uses to define your schema when running `bin/rails # db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to # be faster and is potentially less error prone than running all of your # migrations from scratch. Old migrations may fail to apply correctly if those # migrations use external dependencies or application code. # # It's strongly recommended that you check this file into your version control system. ActiveRecord::Schema[8.0].define(version: 2025_10_08_151039) do create_table "alerts", force: :cascade do |t| t.string "category", null: false t.text "description" t.string "identifier", null: false t.string "park_code", null: false t.string "title", null: false t.string "url" t.datetime "indexed_date" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["identifier"], name: "index_alerts_on_identifier", unique: true t.index ["park_code"], name: "index_alerts_on_park_code" end create_table "parks", force: :cascade do |t| t.string "code", null: false t.string "name", null: false t.json "properties", default: {}, null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["code"], name: "index_parks_on_code", unique: true end create_table "parks_by_states", force: :cascade do |t| t.string "park_code", null: false t.string "state", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["park_code"], name: "index_parks_by_states_on_park_code" t.index ["state", "park_code"], name: "index_parks_by_states_on_state_and_park_code", unique: true end add_foreign_key "alerts", "parks", column: "park_code", primary_key: "code" add_foreign_key "parks_by_states", "parks", column: "park_code", primary_key: "code" end