diff --git a/app/models/devise_token_auth/concerns/user.rb b/app/models/devise_token_auth/concerns/user.rb
index <HASH>..<HASH> 100644
--- a/app/models/devise_token_auth/concerns/user.rb
+++ b/app/models/devise_token_auth/concerns/user.rb
@@ -165,6 +165,6 @@ module DeviseTokenAuth::Concerns::User
   end
 
   def set_empty_token_hash
-    self.tokens ||= {}
+    self.tokens ||= {} if has_attribute?(:tokens)
   end
 end
guard against MissingAttributeError during common ActiveRecord operations