Sha256: cd172f006a8e19674d315b312e82ddafe44f287ad2f7e7de30a3b8c2ebc08306
Contents?: true
Size: 505 Bytes
Versions: 4
Compression:
Stored size: 505 Bytes
Contents
# frozen_string_literal: true class Organization < ActiveRecord::Base has_many :member_details has_many :members, through: :member_details has_many :authors, primary_key: :name has_many :author_essay_categories, through: :authors, source: :essay_categories has_one :author, primary_key: :name has_one :author_owned_essay_category, through: :author, source: :owned_essay_category has_many :posts, through: :author, source: :posts scope :clubs, -> { from("clubs") } end
Version data entries
4 entries across 4 versions & 1 rubygems