From d005951dc786f4be2f919d178cfa4b75fa835df0 Mon Sep 17 00:00:00 2001 From: takami Date: Thu, 28 Aug 2025 01:21:59 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=AB=E3=83=A9=E3=83=A0=E3=81=AE=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...250828004531_add_season_and_times_to_photo_spots.rb | 7 +++++++ db/schema.rb | 10 ++++------ 2 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 db/migrate/20250828004531_add_season_and_times_to_photo_spots.rb diff --git a/db/migrate/20250828004531_add_season_and_times_to_photo_spots.rb b/db/migrate/20250828004531_add_season_and_times_to_photo_spots.rb new file mode 100644 index 0000000..32b1fdc --- /dev/null +++ b/db/migrate/20250828004531_add_season_and_times_to_photo_spots.rb @@ -0,0 +1,7 @@ +class AddSeasonAndTimesToPhotoSpots < ActiveRecord::Migration[8.0] + def change + add_column :photo_spots, :season, :string + add_column :photo_spots, :timestart, :time + add_column :photo_spots, :timeend, :time + end +end diff --git a/db/schema.rb b/db/schema.rb index e370710..6e3f14f 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[8.0].define(version: 2025_08_27_080447) do +ActiveRecord::Schema[8.0].define(version: 2025_08_28_004531) do # These are extensions that must be enabled in order to support this database enable_extension "pg_catalog.plpgsql" @@ -63,6 +63,9 @@ t.decimal "latitude", precision: 10, scale: 7 t.decimal "longitude", precision: 10, scale: 7 t.string "tags" + t.string "season" + t.time "timestart" + t.time "timeend" end create_table "reviews", force: :cascade do |t| @@ -74,11 +77,6 @@ t.index ["photo_spot_id"], name: "index_reviews_on_photo_spot_id" end - create_table "users", force: :cascade do |t| - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" add_foreign_key "reviews", "photo_spots"