mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Drop ahoy, because it's more trouble than it's worth. This means dropping visits, campaigns, targets. Campaigns are better run to analytics, such as: * https://matomo.org/docs/tracking-campaigns/ * https://matomo.org/docs/tracking-goals-web-analytics/ * https://support.google.com/analytics/answer/1012040?hl=en
15 lines
324 B
Ruby
15 lines
324 B
Ruby
class DropAhoyEvents < ActiveRecord::Migration[5.0]
|
|
def up
|
|
remove_index :visits, [:visit_token]
|
|
remove_index :ahoy_events, [:name, :time]
|
|
|
|
drop_table :targets
|
|
drop_table :campaigns
|
|
drop_table :visits
|
|
drop_table :ahoy_events
|
|
end
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|