Skip to content

Commit

Permalink
add feeds.throttled_at
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Aug 31, 2024
1 parent b8da6a7 commit 381e5c4
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 19 deletions.
13 changes: 7 additions & 6 deletions app/models/feed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ def favicon_url
#
# Table name: feeds
#
# id :integer not null, primary key
# fetched_at :datetime
# name :string
# token :string not null
# created_at :datetime not null
# updated_at :datetime not null
# id :integer not null, primary key
# fetched_at :datetime
# name :string
# throttled_at :datetime
# token :string not null
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
Expand Down
5 changes: 5 additions & 0 deletions db/migrate/20240830155904_add_throttled_at_to_feed.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddThrottledAtToFeed < ActiveRecord::Migration[7.2]
def change
add_column :feeds, :throttled_at, :timestamp
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.

13 changes: 7 additions & 6 deletions spec/fixtures/feeds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ one:
#
# Table name: feeds
#
# id :integer not null, primary key
# fetched_at :datetime
# name :string
# token :string not null
# created_at :datetime not null
# updated_at :datetime not null
# id :integer not null, primary key
# fetched_at :datetime
# name :string
# throttled_at :datetime
# token :string not null
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
Expand Down
13 changes: 7 additions & 6 deletions spec/models/feed_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,13 @@
#
# Table name: feeds
#
# id :integer not null, primary key
# fetched_at :datetime
# name :string
# token :string not null
# created_at :datetime not null
# updated_at :datetime not null
# id :integer not null, primary key
# fetched_at :datetime
# name :string
# throttled_at :datetime
# token :string not null
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
Expand Down

0 comments on commit 381e5c4

Please sign in to comment.