mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
moved comments to the bottom, they are way less intrusive there
This commit is contained in:
@ -1,24 +1,3 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: user_actions
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# action_type :integer not null
|
||||
# user_id :integer not null
|
||||
# target_topic_id :integer
|
||||
# target_post_id :integer
|
||||
# target_user_id :integer
|
||||
# acting_user_id :integer
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# idx_unique_rows (action_type,user_id,target_topic_id,target_post_id,acting_user_id) UNIQUE
|
||||
# index_actions_on_acting_user_id (acting_user_id)
|
||||
# index_actions_on_user_id_and_action_type (user_id,action_type)
|
||||
#
|
||||
|
||||
class UserAction < ActiveRecord::Base
|
||||
belongs_to :user
|
||||
belongs_to :target_post, class_name: "Post"
|
||||
@ -292,3 +271,25 @@ ORDER BY p.created_at desc
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: user_actions
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# action_type :integer not null
|
||||
# user_id :integer not null
|
||||
# target_topic_id :integer
|
||||
# target_post_id :integer
|
||||
# target_user_id :integer
|
||||
# acting_user_id :integer
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# idx_unique_rows (action_type,user_id,target_topic_id,target_post_id,acting_user_id) UNIQUE
|
||||
# index_actions_on_acting_user_id (acting_user_id)
|
||||
# index_actions_on_user_id_and_action_type (user_id,action_type)
|
||||
#
|
||||
|
||||
|
Reference in New Issue
Block a user