aboutsummaryrefslogtreecommitdiff
path: root/app/models/classification.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/classification.rb')
-rw-r--r--app/models/classification.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/classification.rb b/app/models/classification.rb
index 0754054..e2b180f 100644
--- a/app/models/classification.rb
+++ b/app/models/classification.rb
@@ -5,4 +5,6 @@
class Classification < ApplicationRecord
belongs_to :resource
belongs_to :section
+
+ self.primary_key = :resource_id
end