spec/support/v5.0/app/models/wizard.rb in sorbet-rails-0.5.1 vs spec/support/v5.0/app/models/wizard.rb in sorbet-rails-0.5.2
- old
+ new
@@ -9,6 +9,8 @@
Slytherin: 3,
}
has_one :wand
has_many :spell_books
+
+ scope :recent, -> { where('created_at > ?', 1.month.ago) }
end