mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
14 lines
258 B
Ruby
14 lines
258 B
Ruby
Sequel.migration do
|
|
up {
|
|
DB.create_table! :archives do
|
|
Integer :site_id, index: true
|
|
String :ipfs_hash
|
|
DateTime :updated_at, index: true
|
|
unique [:site_id, :ipfs_hash]
|
|
end
|
|
}
|
|
|
|
down {
|
|
DB.drop_table :archives
|
|
}
|
|
end
|