validate title

This commit is contained in:
Ryan W
2021-12-16 09:20:38 -08:00
parent 087f841eae
commit d22affb9b4
+1
View File
@@ -1,2 +1,3 @@
class Article < ApplicationRecord class Article < ApplicationRecord
validates_presence_of :title
end end