Initial commit

This commit is contained in:
Yaser
2026-08-13 19:56:46 +03:30
commit de1d57a67b
474 changed files with 43185 additions and 0 deletions

24
app/models/comment.rb Normal file
View File

@@ -0,0 +1,24 @@
# frozen_string_literal: true
class Comment < ApplicationRecord
belongs_to :user
validates :title, :data, :author_uid, presence: true
end
# == Schema Information
#
# Table name: comments
#
# id :bigint not null, primary key
# user_id :bigint unsigned, not null
# author_uid :string(16) not null
# title :string(64) not null
# data :text(65535) not null
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_comments_on_user_id (user_id)
#