Implement IPFS archiving (locally). Refactor store_file.

This commit is contained in:
Kyle Drake 2015-05-21 23:10:59 -07:00
parent 235460abf0
commit 8424cc02e8
10 changed files with 176 additions and 90 deletions

5
models/archive.rb Normal file
View file

@ -0,0 +1,5 @@
class Archive < Sequel::Model
many_to_one :site
set_primary_key [:site_id, :ipfs_hash]
unrestrict_primary_key
end