app/models/coalescing_panda/term.rb in coalescing_panda-3.1.5 vs app/models/coalescing_panda/term.rb in coalescing_panda-3.1.6
- old
+ new
@@ -1,6 +1,8 @@
module CoalescingPanda
class Term < ActiveRecord::Base
belongs_to :account, foreign_key: :coalescing_panda_lti_account_id, class_name: 'CoalescingPanda::LtiAccount'
has_many :courses, foreign_key: :coalescing_panda_term_id, class_name: 'CoalescingPanda::Course'
+
+ validates :coalescing_panda_lti_account_id, presence: true
end
end