Commit cb99d767 authored by Stan Hu's avatar Stan Hu

Merge branch 'mc_rocha-add-timestamp-arkose-attributes' into 'master'

Add timestamp to Arkose custom attributes

See merge request gitlab-org/gitlab!84663
parents 3ba77373 d0688db9
......@@ -7,8 +7,8 @@ class UserCustomAttribute < ApplicationRecord
validates :key, uniqueness: { scope: [:user_id] }
def self.upsert_custom_attributes(custom_attributes)
created_at = Date.today
updated_at = Date.today
created_at = DateTime.now
updated_at = DateTime.now
custom_attributes.map! do |custom_attribute|
custom_attribute.merge({ created_at: created_at, updated_at: updated_at })
......
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