Upgrade ahoy_matey (#20404)
* Added index to ahoy_visits * Upgrade ahoy_matey
This commit is contained in:
parent
a08e8dcffb
commit
ca16a87a47
9 changed files with 17 additions and 10 deletions
2
Gemfile
2
Gemfile
|
|
@ -15,7 +15,7 @@ gem "acts-as-taggable-on", "~> 10.0" # A tagging plugin for Rails applications t
|
||||||
gem "acts_as_follower", github: "forem/acts_as_follower", branch: "master" # Allow any model to follow any other model
|
gem "acts_as_follower", github: "forem/acts_as_follower", branch: "master" # Allow any model to follow any other model
|
||||||
gem "addressable", "~> 2.8" # A replacement for the URI implementation that is part of Ruby's standard library
|
gem "addressable", "~> 2.8" # A replacement for the URI implementation that is part of Ruby's standard library
|
||||||
gem "ahoy_email", "~> 2.2.0" # Email analytics for Rails
|
gem "ahoy_email", "~> 2.2.0" # Email analytics for Rails
|
||||||
gem "ahoy_matey", "~> 4.1" # Tracking analytics for Rails
|
gem "ahoy_matey", "~> 5.0.2" # Tracking analytics for Rails
|
||||||
gem "ancestry", "~> 4.2" # Ancestry allows the records of a ActiveRecord model to be organized in a tree structure
|
gem "ancestry", "~> 4.2" # Ancestry allows the records of a ActiveRecord model to be organized in a tree structure
|
||||||
gem "blazer", "~> 2.6" # Allows admins to query data
|
gem "blazer", "~> 2.6" # Allows admins to query data
|
||||||
gem "bootsnap", ">= 1.1.0", require: false # Boot large ruby/rails apps faster
|
gem "bootsnap", ">= 1.1.0", require: false # Boot large ruby/rails apps faster
|
||||||
|
|
|
||||||
12
Gemfile.lock
12
Gemfile.lock
|
|
@ -85,10 +85,10 @@ GEM
|
||||||
addressable (>= 2.3.2)
|
addressable (>= 2.3.2)
|
||||||
nokogiri
|
nokogiri
|
||||||
safely_block (>= 0.4)
|
safely_block (>= 0.4)
|
||||||
ahoy_matey (4.2.1)
|
ahoy_matey (5.0.2)
|
||||||
activesupport (>= 5.2)
|
activesupport (>= 6.1)
|
||||||
device_detector
|
device_detector (>= 1)
|
||||||
safely_block (>= 0.2.1)
|
safely_block (>= 0.4)
|
||||||
amazing_print (1.5.0)
|
amazing_print (1.5.0)
|
||||||
ancestry (4.3.3)
|
ancestry (4.3.3)
|
||||||
activerecord (>= 5.2.6)
|
activerecord (>= 5.2.6)
|
||||||
|
|
@ -213,7 +213,7 @@ GEM
|
||||||
rake (> 10, < 14)
|
rake (> 10, < 14)
|
||||||
ruby-statistics (>= 2.1)
|
ruby-statistics (>= 2.1)
|
||||||
thor (>= 0.19, < 2)
|
thor (>= 0.19, < 2)
|
||||||
device_detector (1.1.0)
|
device_detector (1.1.1)
|
||||||
devise (4.9.3)
|
devise (4.9.3)
|
||||||
bcrypt (~> 3.0)
|
bcrypt (~> 3.0)
|
||||||
orm_adapter (~> 0.1)
|
orm_adapter (~> 0.1)
|
||||||
|
|
@ -974,7 +974,7 @@ DEPENDENCIES
|
||||||
acts_as_follower!
|
acts_as_follower!
|
||||||
addressable (~> 2.8)
|
addressable (~> 2.8)
|
||||||
ahoy_email (~> 2.2.0)
|
ahoy_email (~> 2.2.0)
|
||||||
ahoy_matey (~> 4.1)
|
ahoy_matey (~> 5.0.2)
|
||||||
amazing_print (~> 1.4)
|
amazing_print (~> 1.4)
|
||||||
ancestry (~> 4.2)
|
ancestry (~> 4.2)
|
||||||
better_errors (~> 2.9)
|
better_errors (~> 2.9)
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ end
|
||||||
# set to true to mask ip addresses
|
# set to true to mask ip addresses
|
||||||
Ahoy.mask_ips = true
|
Ahoy.mask_ips = true
|
||||||
|
|
||||||
# set to false to switch from cookies to anonymity sets
|
# set to :none to switch from cookies to anonymity sets
|
||||||
Ahoy.cookies = false
|
Ahoy.cookies = :none
|
||||||
|
|
||||||
# set to false to disable geocode tracking
|
# set to false to disable geocode tracking
|
||||||
Ahoy.geocode = false
|
Ahoy.geocode = false
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
class AddIndexToAhoyVisitsForUpgrade < ActiveRecord::Migration[7.0]
|
||||||
|
disable_ddl_transaction!
|
||||||
|
def change
|
||||||
|
add_index :ahoy_visits, [:visitor_token, :started_at], algorithm: :concurrently
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema[7.0].define(version: 2023_11_21_140731) do
|
ActiveRecord::Schema[7.0].define(version: 2023_11_29_135338) do
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "citext"
|
enable_extension "citext"
|
||||||
enable_extension "ltree"
|
enable_extension "ltree"
|
||||||
|
|
@ -63,6 +63,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_11_21_140731) do
|
||||||
t.index ["user_id"], name: "index_ahoy_visits_on_user_id"
|
t.index ["user_id"], name: "index_ahoy_visits_on_user_id"
|
||||||
t.index ["user_visit_context_id"], name: "index_ahoy_visits_on_user_visit_context_id"
|
t.index ["user_visit_context_id"], name: "index_ahoy_visits_on_user_visit_context_id"
|
||||||
t.index ["visit_token"], name: "index_ahoy_visits_on_visit_token", unique: true
|
t.index ["visit_token"], name: "index_ahoy_visits_on_visit_token", unique: true
|
||||||
|
t.index ["visitor_token", "started_at"], name: "index_ahoy_visits_on_visitor_token_and_started_at"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "announcements", force: :cascade do |t|
|
create_table "announcements", force: :cascade do |t|
|
||||||
|
|
|
||||||
BIN
vendor/cache/ahoy_matey-4.2.1.gem
vendored
BIN
vendor/cache/ahoy_matey-4.2.1.gem
vendored
Binary file not shown.
BIN
vendor/cache/ahoy_matey-5.0.2.gem
vendored
Normal file
BIN
vendor/cache/ahoy_matey-5.0.2.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/device_detector-1.1.0.gem
vendored
BIN
vendor/cache/device_detector-1.1.0.gem
vendored
Binary file not shown.
BIN
vendor/cache/device_detector-1.1.1.gem
vendored
Normal file
BIN
vendor/cache/device_detector-1.1.1.gem
vendored
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue