diff --git a/dashboard/app/models/user_product_tour.rb b/dashboard/app/models/user_product_tour.rb index 4b98dd5574012..39d6b864596de 100644 --- a/dashboard/app/models/user_product_tour.rb +++ b/dashboard/app/models/user_product_tour.rb @@ -6,6 +6,8 @@ # user_id :integer not null # tour_name :string(255) not null # completed_at :datetime not null +# started_at :datetime +# properties :json # # Indexes # diff --git a/dashboard/db/migrate/20260616120000_add_started_at_and_properties_to_user_product_tours.rb b/dashboard/db/migrate/20260616120000_add_started_at_and_properties_to_user_product_tours.rb new file mode 100644 index 0000000000000..8cc0b5b5c4ae2 --- /dev/null +++ b/dashboard/db/migrate/20260616120000_add_started_at_and_properties_to_user_product_tours.rb @@ -0,0 +1,6 @@ +class AddStartedAtAndPropertiesToUserProductTours < ActiveRecord::Migration[7.0] + def change + add_column :user_product_tours, :started_at, :datetime + add_column :user_product_tours, :properties, :json + end +end diff --git a/dashboard/db/schema.rb b/dashboard/db/schema.rb index 0a097b0a42dd2..1e3c8de8b2128 100644 --- a/dashboard/db/schema.rb +++ b/dashboard/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2026_06_01_152016) do +ActiveRecord::Schema[7.0].define(version: 2026_06_16_120000) do create_table "activities", id: :integer, charset: "utf8mb3", collation: "utf8mb3_unicode_ci", force: :cascade do |t| t.integer "user_id" t.integer "level_id" @@ -2732,6 +2732,8 @@ t.integer "user_id", null: false t.string "tour_name", null: false t.datetime "completed_at", null: false + t.datetime "started_at" + t.json "properties" t.index ["user_id", "tour_name"], name: "index_user_product_tours_on_user_id_and_tour_name", unique: true end