Sha256: c3c3c6e861405d2ab426632c345d131ca1e14c7145122aa45f85f14500a5e021

Contents?: true

Size: 273 Bytes

Versions: 4

Compression:

Stored size: 273 Bytes

Contents

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

    self.table_name = "ahoy_events"

    belongs_to :visit
    belongs_to :user<% unless %w(postgresql postgresql-jsonb).include?(@database) %>

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ahoy_matey-1.5.1 lib/generators/ahoy/stores/templates/active_record_event_model.rb
ahoy_matey-1.5.0 lib/generators/ahoy/stores/templates/active_record_event_model.rb
ahoy_matey-1.4.2 lib/generators/ahoy/stores/templates/active_record_event_model.rb
ahoy_matey-1.4.1 lib/generators/ahoy/stores/templates/active_record_event_model.rb