Sha256: de1de088c15883fce855d3892b1ed41fec5874da1aaae8928ba9c449938f23eb

Contents?: true

Size: 229 Bytes

Versions: 6

Compression:

Stored size: 229 Bytes

Contents

# frozen_string_literal: true

class Essay < ActiveRecord::Base
  belongs_to :author
  belongs_to :writer, primary_key: :name, polymorphic: true
  belongs_to :category, primary_key: :name
  has_one :owner, primary_key: :name
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
ibm_db-5.5.0 test/models/essay.rb
ibm_db-5.4.1 test/models/essay.rb
ibm_db-5.4.0 test/models/essay.rb
ibm_db-5.3.2 test/models/essay.rb
ibm_db-5.3.1 test/models/essay.rb
ruby-on-quails-0.1.0 activerecord/test/models/essay.rb