diff --git a/app/models/rails_lti2_provider/tool.rb b/app/models/rails_lti2_provider/tool.rb index a5ee616..754408a 100644 --- a/app/models/rails_lti2_provider/tool.rb +++ b/app/models/rails_lti2_provider/tool.rb @@ -4,7 +4,7 @@ module RailsLti2Provider class Tool < ApplicationRecord validates :shared_secret, :uuid, :tool_settings, :lti_version, presence: true serialize :tool_settings - belongs_to :tenant, inverse_of: :tools + belongs_to :tenant, foreign_key: :tenant_id, inverse_of: :tools has_many :lti_launches, dependent: :restrict_with_exception has_many :registrations, dependent: :restrict_with_exception