Sha256: 5844deac98acd36d002d4b602de3372488702ceb14993521f9e8c86ea7394dcd
Contents?: true
Size: 333 Bytes
Versions: 6
Compression:
Stored size: 333 Bytes
Contents
module Ahoy class Event < ActiveRecord::Base include Ahoy::Properties self.table_name = "ahoy_events" belongs_to :visit belongs_to :user<%= Rails::VERSION::MAJOR >= 5 ? ", optional: true" : nil %><% unless %w(postgresql postgresql-jsonb).include?(@database) %> serialize :properties, JSON<% end %> end end
Version data entries
6 entries across 6 versions & 1 rubygems