Add terms_of_service_accepted_at to spree_user

It will be used to track when a user has accepted changed to ToS
This commit is contained in:
Gaetan Craig-Riou
2023-11-03 17:15:35 +11:00
committed by Konrad
parent 5f7760c3cc
commit 16cb72adbc
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
class AddTermsOfServiceAcceptedAtToSpreeUsers < ActiveRecord::Migration[7.0]
def change
add_column :spree_users, :terms_of_service_accepted_at, :datetime
end
end

View File

@@ -932,6 +932,7 @@ ActiveRecord::Schema[7.0].define(version: 20231003000823494) do
t.boolean "show_api_key_view", default: false, null: false
t.string "provider"
t.string "uid"
t.datetime "terms_of_service_accepted_at"
t.index ["confirmation_token"], name: "index_spree_users_on_confirmation_token", unique: true
t.index ["email"], name: "email_idx_unique", unique: true
t.index ["persistence_token"], name: "index_users_on_persistence_token"