summaryrefslogtreecommitdiff
path: root/app/models/badges/group_badge.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/badges/group_badge.rb')
-rw-r--r--app/models/badges/group_badge.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/badges/group_badge.rb b/app/models/badges/group_badge.rb
new file mode 100644
index 00000000000..f4b2bdecdcc
--- /dev/null
+++ b/app/models/badges/group_badge.rb
@@ -0,0 +1,5 @@
+class GroupBadge < Badge
+ belongs_to :group
+
+ validates :group, presence: true
+end