Sha256: 5e6aab0e5180d4388edc611a5a251b8fca19ee3680fd7bd872cc5263ddb3bf76

Contents?: true

Size: 260 Bytes

Versions: 18

Compression:

Stored size: 260 Bytes

Contents

require_dependency '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

18 entries across 18 versions & 2 rubygems

Version Path
ibm_db-5.2.0 test/models/college.rb
ibm_db-5.1.0 test/models/college.rb
ibm_db-5.0.5 test/models/college.rb
ibm_db-5.0.4 test/models/college.rb
ibm_db-5.0.3 test/models/college.rb
ibm_db-5.0.2 test/models/college.rb
ibm_db-4.0.0-x86-mingw32 test/models/college.rb
ibm_db-4.0.0 test/models/college.rb
ibm_db-3.0.4-x86-mingw32 test/models/college.rb
ibm_db-3.0.4 test/models/college.rb
ibm_db-3.0.3-x86-mingw32 test/models/college.rb
ibm_db-3.0.3 test/models/college.rb
ibm_db-3.0.2-x86-mingw32 test/models/college.rb
ibm_db-3.0.2 test/models/college.rb
activejob-lock-0.0.2 rails/activerecord/test/models/college.rb
ibm_db-3.0.1 test/models/college.rb
ibm_db-3.0.1-x86-mingw32 test/models/college.rb
activejob-lock-0.0.1 rails/activerecord/test/models/college.rb