spec/support/v5.0/app/models/wizard.rb in sorbet-rails-0.5.8.1 vs spec/support/v5.0/app/models/wizard.rb in sorbet-rails-0.5.9
- old
+ new
@@ -42,8 +42,11 @@
}, _prefix: :color, _suffix: :eyes
has_one :wand
has_many :spell_books
+ # simulate when belongs_to is optional by default
+ belongs_to :school, optional: true
+
scope :recent, -> { where('created_at > ?', 1.month.ago) }
end