Integrazione YouTube Live: OAuth squadra, canale piattaforma Light e UI.
Collegamento da Dettagli squadra e admin per il refresh token Match Live TV; API e app mobile allineate ai piani Light/Full. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
class EnableYoutubeOnPremiumLightPlan < ActiveRecord::Migration[7.2]
|
||||
def up
|
||||
plan = Plan.find_by(slug: "premium_light")
|
||||
return unless plan
|
||||
|
||||
features = plan.features.deep_dup
|
||||
platforms = Array(features["platforms"]).map(&:to_s)
|
||||
features["platforms"] = (platforms + ["youtube"]).uniq
|
||||
plan.update!(features: features)
|
||||
end
|
||||
|
||||
def down
|
||||
plan = Plan.find_by(slug: "premium_light")
|
||||
return unless plan
|
||||
|
||||
features = plan.features.deep_dup
|
||||
features["platforms"] = Array(features["platforms"]).map(&:to_s) - ["youtube"]
|
||||
plan.update!(features: features)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user