schema update

This commit is contained in:
Zsolt Tasnadi
2026-07-28 10:56:30 +02:00
parent 6ea7a8ae69
commit 1604ae7a90
+14 -1
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.1].define(version: 2026_05_05_000011) do
ActiveRecord::Schema[8.1].define(version: 2026_07_28_000001) do
create_table "admin_users", charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
t.datetime "created_at", null: false
t.string "email", default: "", null: false
@@ -31,6 +31,18 @@ ActiveRecord::Schema[8.1].define(version: 2026_05_05_000011) do
t.timestamp "updated_at", default: -> { "CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP" }
end
create_table "downloads", id: { type: :bigint, unsigned: true }, charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
t.datetime "created_at", precision: 3
t.string "file_path", null: false
t.string "ip_address"
t.string "referer", limit: 500
t.bigint "release_id", unsigned: true
t.datetime "updated_at", precision: 3
t.string "user_agent", limit: 500
t.index ["file_path"], name: "index_downloads_on_file_path"
t.index ["release_id"], name: "index_downloads_on_release_id"
end
create_table "events", id: { type: :bigint, unsigned: true }, charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
t.datetime "created_at", precision: 3, null: false
t.datetime "date", null: false
@@ -209,6 +221,7 @@ ActiveRecord::Schema[8.1].define(version: 2026_05_05_000011) do
t.index ["name"], name: "idx_softwares_name", unique: true
end
add_foreign_key "downloads", "releases", name: "fk_downloads_release"
add_foreign_key "external_links", "softwares", name: "fk_softwares_external_links"
add_foreign_key "members", "images"
add_foreign_key "releases", "softwares", name: "fk_softwares_releases"