Sha256: 3737d40278df5fc18daae4ec57e9fde5244e1ea7daf1a1a1e27e89dc49f0a43d

Contents?: true

Size: 236 Bytes

Versions: 8

Compression:

Stored size: 236 Bytes

Contents

class Ahoy::Event < ApplicationRecord
  include Ahoy::QueryMethods

  self.table_name = "ahoy_events"

  belongs_to :visit
  belongs_to :user, optional: true<% if properties_type == "text" %>

  serialize :properties, JSON<% end %>
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ahoy_matey-3.2.0 lib/generators/ahoy/templates/active_record_event_model.rb.tt
ahoy_matey-3.1.0 lib/generators/ahoy/templates/active_record_event_model.rb.tt
ahoy_matey-3.0.5 lib/generators/ahoy/templates/active_record_event_model.rb.tt
ahoy_matey-3.0.4 lib/generators/ahoy/templates/active_record_event_model.rb.tt
ahoy_matey-3.0.3 lib/generators/ahoy/templates/active_record_event_model.rb.tt
ahoy_matey-3.0.2 lib/generators/ahoy/templates/active_record_event_model.rb.tt
ahoy_matey-3.0.1 lib/generators/ahoy/templates/active_record_event_model.rb.tt
ahoy_matey-3.0.0 lib/generators/ahoy/templates/active_record_event_model.rb.tt