Sha256: adb16e6b9c3f8a2d6e25abbd60f0d4321d896edc3c8ddc71cfa15603b32f5f1b

Contents?: true

Size: 225 Bytes

Versions: 6

Compression:

Stored size: 225 Bytes

Contents

class Ahoy::Visit < <%= rails5? ? "ApplicationRecord" : "ActiveRecord::Base" %>
  self.table_name = "ahoy_visits"

  has_many :events, class_name: "Ahoy::Event"
  belongs_to :user<%= rails5? ? ", optional: true" : nil %>
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ahoy_matey-2.2.1 lib/generators/ahoy/templates/active_record_visit_model.rb.tt
ahoy_matey-2.2.0 lib/generators/ahoy/templates/active_record_visit_model.rb.tt
ahoy_matey-2.1.0 lib/generators/ahoy/templates/active_record_visit_model.rb
ahoy_matey-2.0.2 lib/generators/ahoy/templates/active_record_visit_model.rb
ahoy_matey-2.0.1 lib/generators/ahoy/templates/active_record_visit_model.rb
ahoy_matey-2.0.0 lib/generators/ahoy/templates/active_record_visit_model.rb