Sha256: cf1f4711899b90a13ca10f7f0b63a85d8b85dc3402638dacb5d2d0abe86d3be7

Contents?: true

Size: 424 Bytes

Versions: 9

Compression:

Stored size: 424 Bytes

Contents

ActiveRecord::Schema.define do
  create_table :users do |t|
    t.string :email
    t.integer :age
    t.integer :gender
  end
end

class User < ActiveRecord::Base
  has_metrics
  has_metrics :visits_metrics, class_name: "VisitsMetrics", inherits: [:gender, :age]
  has_metrics :action_metrics, class_name: "ActionMetrics", foreign_key: :user
  has_metrics :custom_metrics, class_name: "CustomMetrics", foreign_key: nil
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
influxer-1.0.1 spec/support/user.rb
influxer-1.0.0 spec/support/user.rb
influxer-0.5.4 spec/support/user.rb
influxer-0.5.3 spec/support/user.rb
influxer-0.5.2 spec/support/user.rb
influxer-0.5.1 spec/support/user.rb
influxer-0.5.0 spec/support/user.rb
influxer-0.4.0 spec/support/user.rb
influxer-0.3.1 spec/support/user.rb