2022-11-08 13:27:46 +08:00
|
|
|
# == Schema Information
|
|
|
|
|
#
|
|
|
|
|
# Table name: feedbacks
|
|
|
|
|
#
|
|
|
|
|
# id :integer not null, primary key
|
|
|
|
|
# user_id :integer
|
|
|
|
|
# content :text(65535)
|
|
|
|
|
# created_at :datetime not null
|
|
|
|
|
# updated_at :datetime not null
|
|
|
|
|
#
|
|
|
|
|
# Indexes
|
|
|
|
|
#
|
|
|
|
|
# index_feedbacks_on_user_id (user_id)
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
class Feedback < ApplicationRecord
|
|
|
|
|
|
|
|
|
|
belongs_to :user
|
2022-11-09 11:37:12 +08:00
|
|
|
has_many :feedback_message_histories, dependent: :destroy
|
2022-11-08 13:27:46 +08:00
|
|
|
|
|
|
|
|
end
|