Commit d0688db9 authored by mc_rocha's avatar mc_rocha

Add timestamp to Arkose custom attributes

parent 0214d07d
......@@ -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