Files
grecia/db/migrate/20240425224146_drop_ahoy_events.rb
Javi Martín 6ab51b0367 Remove the ahoy_events table
We stopped using ahoy events in commit f7e2d724d.
2024-11-13 15:55:20 +01:00

18 lines
399 B
Ruby

class DropAhoyEvents < ActiveRecord::Migration[7.0]
def change
drop_table :ahoy_events, id: :uuid, default: nil do |t|
t.uuid :visit_id
t.integer :user_id
t.string :name
t.jsonb :properties
t.datetime :time, precision: nil
t.string :ip
t.index [:name, :time]
t.index [:time]
t.index [:user_id]
t.index [:visit_id]
end
end
end