Added channel and video models, views, and routes
This commit is contained in:
@ -2,4 +2,8 @@ class Channel < Sequel::Model
|
||||
|
||||
one_to_many :videos
|
||||
|
||||
def openProjects()
|
||||
return 0
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -1,5 +1,5 @@
|
||||
class Video < Sequel::Model
|
||||
|
||||
many_to_one :channels
|
||||
many_to_one :channel
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user