Sha256: 00c2c68c53c224244bd819f143943f37a7172cfbabc3f7e2bb53d9ed3f47afcb

Contents?: true

Size: 355 Bytes

Versions: 4

Compression:

Stored size: 355 Bytes

Contents

# frozen_string_literal: true

class Friendship < ActiveRecord::Base
  belongs_to :friend, class_name: "Person"
  # friend_too exists to test a bug, and probably shouldn't be used elsewhere
  belongs_to :friend_too, foreign_key: "friend_id", class_name: "Person", counter_cache: :friends_too_count
  belongs_to :follower, class_name: "Person"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ibm_db-5.5.0-x86-mingw32 test/models/friendship.rb
ibm_db-5.4.1-x86-mingw32 test/models/friendship.rb
ibm_db-5.4.0-x86-mingw32 test/models/friendship.rb
ibm_db-5.3.2-x86-mingw32 test/models/friendship.rb