about summary refs log tree commit diff
path: root/app/models/concerns
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-31 01:52:08 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:16 -0500
commita036e8561344866b072c2874906c9c9533cd27ea (patch)
tree4bfced891c9ece25baf5f2f644a4176d82b8b611 /app/models/concerns
parenta0ae00eeb5b89ccd23868e530608fbbc07349a7e (diff)
[Feature] Add general-purpose account metadata to backend
Diffstat (limited to 'app/models/concerns')
-rw-r--r--app/models/concerns/account_associations.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/concerns/account_associations.rb b/app/models/concerns/account_associations.rb
index 10eaa4874..5a54f2208 100644
--- a/app/models/concerns/account_associations.rb
+++ b/app/models/concerns/account_associations.rb
@@ -66,5 +66,8 @@ module AccountAssociations
 
     # Domain permissions
     has_many :domain_permissions, class_name: 'AccountDomainPermission', inverse_of: :account, dependent: :destroy
+
+    # Custom metadata
+    has_one :metadata, class_name: 'AccountMetadata', inverse_of: :account, dependent: :destroy
   end
 end