mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 01:01:30 +02:00
Implement IPFS archiving (locally). Refactor store_file.
This commit is contained in:
parent
235460abf0
commit
8424cc02e8
10 changed files with 176 additions and 90 deletions
5
models/archive.rb
Normal file
5
models/archive.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class Archive < Sequel::Model
|
||||
many_to_one :site
|
||||
set_primary_key [:site_id, :ipfs_hash]
|
||||
unrestrict_primary_key
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue