sapo-videos/models.rb
2023-07-28 03:01:40 +01:00

14 lines
271 B
Ruby

# SPDX-License-Identifier: AGPL-3.0-only
# SPDX-FileCopyrightText: 2023 Hugo Peixoto <hugo.peixoto@gmail.com>
require 'active_record'
require 'date'
class Video < ActiveRecord::Base
has_many :downloads
end
class Download < ActiveRecord::Base
belongs_to :video
end