Commit d4bfdd34 authored by Marco Wessel's avatar Marco Wessel
Browse files

use update_column and set to created_at like elsewhere

parent 9461f5da9f61
......@@ -48,10 +48,10 @@ class Project < ActiveRecord::Base
default_value_for :wall_enabled, false
default_value_for :snippets_enabled, gitlab_config_features.snippets
# set last_activity_at to the same as updated_at
before_create :set_last_activity_at
# set last_activity_at to the same as created_at
after_create :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
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