-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #870 from tf/fix-hls-output-presences-12-0
Include hls in output presences of legacy files
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
db/migrate/20170913105048_fix_hls_output_presences_for_legacy_video_files.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class FixHlsOutputPresencesForLegacyVideoFiles < ActiveRecord::Migration | ||
def up | ||
execute(<<-SQL) | ||
UPDATE pageflow_video_files | ||
SET output_presences = '{"high":true,"medium":true,"low":true,"hls-playlist":true}' | ||
WHERE output_presences = '{"high":true,"medium":true,"low":true}'; | ||
SQL | ||
end | ||
|
||
def down | ||
end | ||
end |