1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-24 17:04:43 +00:00
Files
wrestlingdev.com/db/migrate/20241224132705_create_tournament_backups.rb

16 lines
409 B
Ruby

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