mirror of
https://github.com/Neetpone/foalfetch.git
synced 2025-02-08 18:06:43 +01:00
16 lines
428 B
Ruby
16 lines
428 B
Ruby
|
# frozen_string_literal: true
|
||
|
# == Schema Information
|
||
|
#
|
||
|
# Table name: blogs
|
||
|
#
|
||
|
# id :bigint not null, primary key
|
||
|
# body :text not null
|
||
|
# title :text not null
|
||
|
# created_at :datetime not null
|
||
|
# updated_at :datetime not null
|
||
|
#
|
||
|
class Blog < ApplicationRecord
|
||
|
validates :title, presence: true, length: { maximum: 128 }
|
||
|
validates :body, presence: true
|
||
|
end
|