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.
This commit is contained in:
parent
6dccace0c8
commit
c00e336009
21
db/schema.rb
generated
21
db/schema.rb
generated
@ -10,7 +10,17 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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|
|
create_table "users", force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name"
|
||||||
t.string "email"
|
t.string "email"
|
||||||
@ -26,4 +36,13 @@ ActiveRecord::Schema[8.0].define(version: 2025_01_07_093124) do
|
|||||||
t.datetime "reset_send_at"
|
t.datetime "reset_send_at"
|
||||||
t.index ["email"], name: "index_users_on_email", unique: true
|
t.index ["email"], name: "index_users_on_email", unique: true
|
||||||
end
|
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
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user