Sha256: cc166d8a0232c37e9f5014145cbaef5c0576899f37246b08c553170916c33d5d

Contents?: true

Size: 232 Bytes

Versions: 8

Compression:

Stored size: 232 Bytes

Contents

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, JSON<% end %>
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ahoy_matey-4.2.1 lib/generators/ahoy/templates/active_record_event_model.rb.tt
ahoy_matey-4.2.0 lib/generators/ahoy/templates/active_record_event_model.rb.tt
ahoy_matey-4.1.0 lib/generators/ahoy/templates/active_record_event_model.rb.tt
ahoy_matey-4.0.3 lib/generators/ahoy/templates/active_record_event_model.rb.tt
ahoy_matey-4.0.2 lib/generators/ahoy/templates/active_record_event_model.rb.tt
ahoy_matey-4.0.1 lib/generators/ahoy/templates/active_record_event_model.rb.tt
ahoy_matey-4.0.0 lib/generators/ahoy/templates/active_record_event_model.rb.tt
ahoy_matey-3.3.0 lib/generators/ahoy/templates/active_record_event_model.rb.tt