Sha256: af6a71033e03bf5564936df2c5ac8f5586e325ec11601ab0b1a85c5823aae9bb

Contents?: true

Size: 304 Bytes

Versions: 24

Compression:

Stored size: 304 Bytes

Contents

class Ahoy::Event
  include Mongoid::Document

  # associations
  belongs_to :visit, class_name: "Ahoy::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

24 entries across 24 versions & 1 rubygems

Version Path
wco_models-3.1.0.187 app/models/ahoy/event.rb
wco_models-3.1.0.184 app/models/ahoy/event.rb
wco_models-3.1.0.183 app/models/ahoy/event.rb
wco_models-3.1.0.182 app/models/ahoy/event.rb
wco_models-3.1.0.181 app/models/ahoy/event.rb
wco_models-3.1.0.180 app/models/ahoy/event.rb
wco_models-3.1.0.178 app/models/ahoy/event.rb
wco_models-3.1.0.177 app/models/ahoy/event.rb
wco_models-3.1.0.176 app/models/ahoy/event.rb
wco_models-3.1.0.175 app/models/ahoy/event.rb
wco_models-3.1.0.174 app/models/ahoy/event.rb
wco_models-3.1.0.173 app/models/ahoy/event.rb
wco_models-3.1.0.172 app/models/ahoy/event.rb
wco_models-3.1.0.171 app/models/ahoy/event.rb
wco_models-3.1.0.170 app/models/ahoy/event.rb
wco_models-3.1.0.169 app/models/ahoy/event.rb
wco_models-3.1.0.168 app/models/ahoy/event.rb
wco_models-3.1.0.167 app/models/ahoy/event.rb
wco_models-3.1.0.166 app/models/ahoy/event.rb
wco_models-3.1.0.165 app/models/ahoy/event.rb