From 1e9e418848007bb53e776aaa3182152eb8a693bd Mon Sep 17 00:00:00 2001 From: Adrian Hinz Date: Thu, 16 May 2019 10:43:09 +0200 Subject: [PATCH] Video relationship changed --- app/models/video.rb | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/app/models/video.rb b/app/models/video.rb index 9c0f0a3..0b00804 100644 --- a/app/models/video.rb +++ b/app/models/video.rb @@ -2,5 +2,22 @@ # Class for video links class Video < ApplicationRecord - belongs_to :video_account + # == Constants ============================================================ + + # == Attributes =========================================================== + + # == Extensions =========================================================== + + # == Relationships ======================================================== + belongs_to :video_account, optional: true + + # == Validations ========================================================== + + # == Scopes =============================================================== + + # == Callbacks ============================================================ + + # == Class Methods ======================================================== + + # == Instance Methods ===================================================== end