From c00e3360093b765af0034e1ac29fe9b5e35ec11f Mon Sep 17 00:00:00 2001 From: songtianlun Date: Fri, 17 Jan 2025 18:08:41 +0800 Subject: [PATCH] feat: add cities and weather_arts tables - Create cities table with fields for name, country, latitude, and longitude - Add featured boolean field to cities table - Create weather_arts table with fields for weather_date, weather_condition, description, and prompt These changes enhance the database schema by introducing new tables that will support future features related to city and weather data management. --- db/schema.rb | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/db/schema.rb b/db/schema.rb index 88fd542..9c77b3a 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,17 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[8.0].define(version: 2025_01_07_093124) do +ActiveRecord::Schema[8.0].define(version: 2025_01_17_095400) do + create_table "cities", force: :cascade do |t| + t.string "name" + t.string "country" + t.decimal "latitude" + t.decimal "longitude" + t.boolean "featured" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + create_table "users", force: :cascade do |t| t.string "name" t.string "email" @@ -26,4 +36,13 @@ ActiveRecord::Schema[8.0].define(version: 2025_01_07_093124) do t.datetime "reset_send_at" t.index ["email"], name: "index_users_on_email", unique: true end + + create_table "weather_arts", force: :cascade do |t| + t.date "weather_date" + t.string "weather_condition" + t.text "description" + t.string "prompt" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end end