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"