1
0
Fork 0
mirror of https://github.com/neocities/neocities.git synced 2025-05-15 17:07:19 +02:00
neocities/models/archive.rb
2015-05-27 16:06:56 -07:00

9 lines
183 B
Ruby

class Archive < Sequel::Model
many_to_one :site
set_primary_key [:site_id, :ipfs_hash]
unrestrict_primary_key
def url
"https://#{ipfs_hash}.ipfs.neocities.org"
end
end