app/models/phcscriptcdn/script/listing.rb in phcscriptcdn-5.0.0 vs app/models/phcscriptcdn/script/listing.rb in phcscriptcdn-5.0.1
- old
+ new
@@ -13,7 +13,17 @@
belongs_to :version, class_name: 'Phcscriptcdn::Script::Version'
# Attach to Licence (None Nested)
belongs_to :licence, class_name: 'Phcscriptcdn::Script::Licence'
+ # Validation for Form Fields
+ validates :scripttitle,
+ presence: true
+
+ validates :scriptdescription,
+ presence: true
+
+ validates :scriptstatus,
+ presence: true
+
end
end
\ No newline at end of file