Skip to content

Commit

Permalink
Bool to indicate feed should be uncached in dovetail
Browse files Browse the repository at this point in the history
  • Loading branch information
cavis committed Feb 15, 2024
1 parent f2cef64 commit 33fc80c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/representers/api/auth/feed_representer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ class Api::Auth::FeedRepresenter < Api::BaseRepresenter
property :id, writable: false
property :created_at, writable: false
property :updated_at, writable: false
property :uncached, writable: false

property :slug
property :file_name
Expand Down
8 changes: 8 additions & 0 deletions db/migrate/20240215160548_add_uncached_to_feed.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class AddUncachedToFeed < ActiveRecord::Migration[7.0]
def change
add_column :feeds, :uncached, :boolean, default: false

# make all apple delegated delivery feeds uncached
Feed.where(id: Apple::Config.pluck(:private_feed_id)).update_all(uncached: true)
end
end
3 changes: 2 additions & 1 deletion db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 33fc80c

Please sign in to comment.