Commit d4bfdd34 authored by Marco Wessel's avatar Marco Wessel

use update_column and set to created_at like elsewhere

parent b19b8c67
...@@ -48,10 +48,10 @@ class Project < ActiveRecord::Base ...@@ -48,10 +48,10 @@ class Project < ActiveRecord::Base
default_value_for :wall_enabled, false default_value_for :wall_enabled, false
default_value_for :snippets_enabled, gitlab_config_features.snippets default_value_for :snippets_enabled, gitlab_config_features.snippets
# set last_activity_at to the same as updated_at # set last_activity_at to the same as created_at
before_create :set_last_activity_at after_create :set_last_activity_at
def set_last_activity_at def set_last_activity_at
self.last_activity_at = self.updated_at update_column(:last_activity_at, self.created_at)
end end
ActsAsTaggableOn.strict_case_match = true ActsAsTaggableOn.strict_case_match = true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment