Sha256: b2ebaf97499382ecc5b4d80d5efb58890310d05cff6db974f503d1c430cbeadf

Contents?: true

Size: 214 Bytes

Versions: 5

Compression:

Stored size: 214 Bytes

Contents

module Ahoy
  class Event < ActiveRecord::Base
    self.table_name = "ahoy_events"

    belongs_to :visit
    belongs_to :user<% if options["database"].blank? %>

    serialize :properties, JSON<% end %>
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ahoy_matey-1.3.1 lib/generators/ahoy/stores/templates/active_record_event_model.rb
ahoy_matey-1.3.0 lib/generators/ahoy/stores/templates/active_record_event_model.rb
ahoy_matey-1.2.2 lib/generators/ahoy/stores/templates/active_record_event_model.rb
ahoy_matey-1.2.1 lib/generators/ahoy/stores/templates/active_record_event_model.rb
ahoy_matey-1.2.0 lib/generators/ahoy/stores/templates/active_record_event_model.rb