Files
MatchLiveTv/backend/db/migrate/20260528140000_replay_enhancements.rb
Emiliano Frascaro 1f273f849d Aggiunge modulo Replay, Garage dev e YouTube a livello società.
Pipeline registrazione/upload con storage S3, archivio web e app, proxy replay
per il browser, OAuth YouTube sulla pagina club (Premium Full) e footer legale.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-03 07:53:11 +02:00

17 lines
549 B
Ruby

class ReplayEnhancements < ActiveRecord::Migration[7.2]
def change
change_table :recordings, bulk: true do |t|
t.jsonb :metadata, null: false, default: {}
t.string :thumbnail_storage_key
t.integer :view_count, null: false, default: 0
t.datetime :ready_notified_at
t.datetime :expiry_warning_sent_at
t.string :youtube_video_id
t.datetime :youtube_published_at
end
add_index :recordings, :view_count
add_index :recordings, :youtube_video_id, where: "youtube_video_id IS NOT NULL"
end
end