sapo-videos/models.rb

14 lines
271 B
Ruby
Raw Normal View History

2023-07-28 02:01:40 +00:00
# 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