rss feed and download stats

This commit is contained in:
2026-07-28 10:42:39 +02:00
parent 746143decd
commit 4afa440b12
20 changed files with 186 additions and 14 deletions
@@ -0,0 +1,19 @@
class CreateDownloads < ActiveRecord::Migration[8.1]
def change
create_table :downloads, id: { type: :bigint, unsigned: true },
charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci" do |t|
t.string :file_path, null: false
t.bigint :release_id, unsigned: true
t.string :ip_address
t.string :user_agent, limit: 500
t.string :referer, limit: 500
t.datetime :created_at, precision: 3
t.datetime :updated_at, precision: 3
t.index :file_path
t.index :release_id
end
add_foreign_key :downloads, :releases, name: "fk_downloads_release" if table_exists?(:releases)
end
end