1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-03 21:33:48 +00:00

Added tournament backups to the database and added pages to restore and create backups

This commit is contained in:
2025-01-04 16:27:52 -05:00
parent 698576dac9
commit 49fbf6735d
17 changed files with 497 additions and 41 deletions

View File

@@ -0,0 +1,16 @@
class CreateTournamentBackups < ActiveRecord::Migration[7.0]
def up
create_table :tournament_backups do |t|
t.integer :tournament_id, null: false, foreign_key: true
t.text :backup_data, null: false, limit: 4294967295 # Use LONGTEXT for large backups
t.string :backup_reason
t.timestamps
end
end
def down
# Drop the table
drop_table :tournament_backups
end
end