Sha256: 862aba44630288d852f05bf8d04533ffb2a03cdc8412aa538d383d4e7159bc94

Contents?: true

Size: 292 Bytes

Versions: 4

Compression:

Stored size: 292 Bytes

Contents

# frozen_string_literal: true

require "models/arunit2_model"
require "active_support/core_ext/object/with_options"

class College < ARUnit2Model
  has_many :courses

  with_options dependent: :destroy do |assoc|
    assoc.has_many :students, -> { where(active: true) }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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