Skip to content

Commit f669759

Browse files
authored
Add started at and props to user_product_tour table (#73299)
1 parent cd08110 commit f669759

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

dashboard/app/models/user_product_tour.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# user_id :integer not null
77
# tour_name :string(255) not null
88
# completed_at :datetime not null
9+
# started_at :datetime
10+
# properties :json
911
#
1012
# Indexes
1113
#
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class AddStartedAtAndPropertiesToUserProductTours < ActiveRecord::Migration[7.0]
2+
def change
3+
add_column :user_product_tours, :started_at, :datetime
4+
add_column :user_product_tours, :properties, :json
5+
end
6+
end

dashboard/db/schema.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.0].define(version: 2026_06_01_152016) do
13+
ActiveRecord::Schema[7.0].define(version: 2026_06_16_120000) do
1414
create_table "activities", id: :integer, charset: "utf8mb3", collation: "utf8mb3_unicode_ci", force: :cascade do |t|
1515
t.integer "user_id"
1616
t.integer "level_id"
@@ -2732,6 +2732,8 @@
27322732
t.integer "user_id", null: false
27332733
t.string "tour_name", null: false
27342734
t.datetime "completed_at", null: false
2735+
t.datetime "started_at"
2736+
t.json "properties"
27352737
t.index ["user_id", "tour_name"], name: "index_user_product_tours_on_user_id_and_tour_name", unique: true
27362738
end
27372739

0 commit comments

Comments
 (0)