From 1e2f1da0aa821b14bc2dd70746d1ac24183ef32d Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 19 Jun 2016 18:58:41 +0200 Subject: [PATCH] Added relation to group. --- app/models/channel.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/channel.rb b/app/models/channel.rb index 0e3574fcd..df4ed9df5 100644 --- a/app/models/channel.rb +++ b/app/models/channel.rb @@ -4,6 +4,8 @@ class Channel < ApplicationModel load 'channel/assets.rb' include Channel::Assets + belongs_to :group, class_name: 'Group' + store :options store :preferences