Sha256: bde850f6d3745a8e83105692977a344e158e5ce5e2b2e9db9f12818f6320fcec

Contents?: true

Size: 198 Bytes

Versions: 5

Compression:

Stored size: 198 Bytes

Contents

# frozen_string_literal: true

class Subscription < ActiveRecord::Base
  belongs_to :subscriber, counter_cache: :books_count
  belongs_to :book

  validates_presence_of :subscriber_id, :book_id
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ibm_db-5.5.0 test/models/subscription.rb
ibm_db-5.4.1 test/models/subscription.rb
ibm_db-5.4.0 test/models/subscription.rb
ibm_db-5.3.2 test/models/subscription.rb
ibm_db-5.3.1 test/models/subscription.rb