Sha256: 5844deac98acd36d002d4b602de3372488702ceb14993521f9e8c86ea7394dcd

Contents?: true

Size: 333 Bytes

Versions: 6

Compression:

Stored size: 333 Bytes

Contents

module Ahoy
  class Event < ActiveRecord::Base
    include Ahoy::Properties

    self.table_name = "ahoy_events"

    belongs_to :visit
    belongs_to :user<%= Rails::VERSION::MAJOR >= 5 ? ", optional: true" : nil %><% unless %w(postgresql postgresql-jsonb).include?(@database) %>

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ahoy_matey-1.6.1 lib/generators/ahoy/stores/templates/active_record_event_model.rb
ahoy_matey-1.6.0 lib/generators/ahoy/stores/templates/active_record_event_model.rb
ahoy_matey-1.5.5 lib/generators/ahoy/stores/templates/active_record_event_model.rb
ahoy_matey-1.5.4 lib/generators/ahoy/stores/templates/active_record_event_model.rb
ahoy_matey-1.5.3 lib/generators/ahoy/stores/templates/active_record_event_model.rb
ahoy_matey-1.5.2 lib/generators/ahoy/stores/templates/active_record_event_model.rb