class Ahoy::Event < ApplicationRecord
include Ahoy::QueryMethods self.table_name = "ahoy_events" belongs_to :visit belongs_to :user, optional: true<% if serialize_properties? %> serialize :properties, coder: JSON<% end %>
end
class Ahoy::Event < ApplicationRecord
include Ahoy::QueryMethods self.table_name = "ahoy_events" belongs_to :visit belongs_to :user, optional: true<% if serialize_properties? %> serialize :properties, coder: JSON<% end %>
end