aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/pdfresource.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/pdfresource.rb')
-rw-r--r--app/models/pdfresource.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/pdfresource.rb b/app/models/pdfresource.rb
index 86e600c..4fa2292 100644
--- a/app/models/pdfresource.rb
+++ b/app/models/pdfresource.rb
@@ -2,6 +2,7 @@ class Pdfresource < ApplicationRecord
has_many_attached :pdfs
has_many_attached :thumbnails
has_many_attached :pdf_snapshots
+ belongs_to :resource_type
validates :feature_slot,
numericality: { only_integer: true, greater_than_or_equal_to: 1, less_than_or_equal_to: 3, allow_nil: true },
allow_nil: true