Add ReviewRequest and ReviewMessage

This commit is contained in:
João Geonizeli
2022-07-21 10:32:53 -03:00
parent 3928da4577
commit 734b6e911a
10 changed files with 398 additions and 131 deletions

View File

@@ -0,0 +1,25 @@
# == Schema Information
#
# Table name: review_requests
#
# id :bigint not null, primary key
# answered :string
# created_at :datetime not null
# updated_at :datetime not null
# question_id :bigint not null
# user_id :bigint not null
#
# Indexes
#
# index_review_requests_on_question_id (question_id)
# index_review_requests_on_user_id (user_id)
#
# Foreign Keys
#
# fk_rails_... (question_id => questions.id)
# fk_rails_... (user_id => users.id)
#
class ReviewRequest < ApplicationRecord
belongs_to :question
belongs_to :user
end