mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix ahoy tracking and visits
This commit is contained in:
parent
b54e3f7ab9
commit
3bb73f27cf
6 changed files with 38 additions and 21 deletions
11
db/migrate/20180312100045_create_ahoy_visits_and_events.rb
Normal file
11
db/migrate/20180312100045_create_ahoy_visits_and_events.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateAhoyVisitsAndEvents < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :visits, :visit_token, :string
|
||||
add_column :visits, :visitor_token, :string
|
||||
|
||||
add_index :visits, [:visit_token], unique: true
|
||||
add_index :ahoy_events, [:name, :time]
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue