al13ntown/app/models/profile.rb

13 lines
288 B
Ruby
Raw Permalink Normal View History

2026-08-24 20:12:41 +00:00
class Profile < ApplicationRecord
belongs_to :user
has_one_attached :avatar_image
has_rich_text :bio
# has_rich_text
has_many :blogs
# has_many :posts
validates :name, presence: true,
length: { minimum: 1 }
# validates :avatar_image, presence:true
end