45072f34d2
2214237c39
d7154d4832
1
2
3
4 5 6
7
class Article < ActiveRecord::Base has_many :comments, dependent: :destroy validates :title, presence: true, length: { minimum: 5 } end