test/model/book.rb in second_level_cache-2.6.0 vs test/model/book.rb in second_level_cache-2.6.1
- old
+ new
@@ -8,10 +8,10 @@
t.integer :images_count, default: 0
t.date :publish_date
t.boolean :normal, default: true, nil: false
end
-class Book < ActiveRecord::Base
+class Book < ApplicationRecord
second_level_cache
default_scope -> { where(normal: true) }
belongs_to :user, counter_cache: true