Sha256: b0dd7dc0a0fba4c92ac01299dd57a926eb48962c7eb20789693bcd34c72f91d0

Contents?: true

Size: 276 Bytes

Versions: 13

Compression:

Stored size: 276 Bytes

Contents

class Ahoy::Event
  include Mongoid::Document

  # associations
  belongs_to :visit, index: true
  belongs_to :user, index: true, optional: true

  # fields
  field :name, type: String
  field :properties, type: Hash
  field :time, type: Time

  index({name: 1, time: 1})
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ahoy_matey-4.0.3 lib/generators/ahoy/templates/mongoid_event_model.rb.tt
ahoy_matey-4.0.2 lib/generators/ahoy/templates/mongoid_event_model.rb.tt
ahoy_matey-4.0.1 lib/generators/ahoy/templates/mongoid_event_model.rb.tt
ahoy_matey-4.0.0 lib/generators/ahoy/templates/mongoid_event_model.rb.tt
ahoy_matey-3.3.0 lib/generators/ahoy/templates/mongoid_event_model.rb.tt
ahoy_matey-3.2.0 lib/generators/ahoy/templates/mongoid_event_model.rb.tt
ahoy_matey-3.1.0 lib/generators/ahoy/templates/mongoid_event_model.rb.tt
ahoy_matey-3.0.5 lib/generators/ahoy/templates/mongoid_event_model.rb.tt
ahoy_matey-3.0.4 lib/generators/ahoy/templates/mongoid_event_model.rb.tt
ahoy_matey-3.0.3 lib/generators/ahoy/templates/mongoid_event_model.rb.tt
ahoy_matey-3.0.2 lib/generators/ahoy/templates/mongoid_event_model.rb.tt
ahoy_matey-3.0.1 lib/generators/ahoy/templates/mongoid_event_model.rb.tt
ahoy_matey-3.0.0 lib/generators/ahoy/templates/mongoid_event_model.rb.tt