fix some unit tests

This commit is contained in:
r888888888
2018-01-02 15:12:48 -08:00
parent 4a80d6c337
commit 604e9e9866
5 changed files with 22 additions and 15 deletions

View File

@@ -103,7 +103,7 @@ class User < ApplicationRecord
has_many :note_versions, :foreign_key => "updater_id"
has_many :dmails, lambda {order("dmails.id desc")}, :foreign_key => "owner_id"
has_many :saved_searches
has_many :forum_posts, lambda {order("forum_posts.created_at")}, :foreign_key => "creator_id"
has_many :forum_posts, lambda {order("forum_posts.created_at, forum_posts.id")}, :foreign_key => "creator_id"
has_many :user_name_change_requests, lambda {visible.order("user_name_change_requests.created_at desc")}
belongs_to :inviter, :class_name => "User"
after_update :create_mod_action