mirror of
https://github.com/Neetpone/foalfetch.git
synced 2025-02-08 18:06:43 +01:00
15 lines
428 B
Ruby
15 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
|