Changes and improvements to the process.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
class ApplicationRecord < ActiveRecord::Base
|
||||
self.abstract_class = true
|
||||
end
|
||||
@@ -0,0 +1,4 @@
|
||||
class Article < ApplicationRecord
|
||||
validates :title, presence: true,
|
||||
length: { minimum: 5 }
|
||||
end
|
||||
Reference in New Issue
Block a user