Sha256: 06a9642a2aeec002a76ff413223c27f2fc20de4ea79866f829d39556a48eba84

Contents?: true

Size: 223 Bytes

Versions: 3

Compression:

Stored size: 223 Bytes

Contents

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

    belongs_to :visit
    belongs_to :user

    <% if options["database"] != "postgresql" %>serialize :properties, JSON<% end %>
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ahoy_matey-1.0.2 lib/generators/ahoy/stores/templates/active_record_event_model.rb
ahoy_matey-1.0.1 lib/generators/ahoy/stores/templates/active_record_event_model.rb
ahoy_matey-1.0.0 lib/generators/ahoy/stores/templates/active_record_event_model.rb