Added Sequel migrations and models for videos and channels; Fixed database name in Rakefile and defaults config file

This commit is contained in:
2023-03-03 13:05:01 -05:00
parent e731f6c84b
commit 646d2d19f9
9 changed files with 60 additions and 15 deletions

5
lib/models/channel.rb Normal file
View File

@ -0,0 +1,5 @@
class Channel < Sequel::Model
one_to_many :videos
end

5
lib/models/video.rb Normal file
View File

@ -0,0 +1,5 @@
class Video < Sequel::Model
many_to_one :channels
end