about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20200821051721_add_retries_to_collection_items.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20200821051721_add_retries_to_collection_items.rb b/db/migrate/20200821051721_add_retries_to_collection_items.rb
new file mode 100644
index 000000000..9cee437d9
--- /dev/null
+++ b/db/migrate/20200821051721_add_retries_to_collection_items.rb
@@ -0,0 +1,5 @@
+class AddRetriesToCollectionItems < ActiveRecord::Migration[5.2]
+  def change
+    add_column :collection_items, :retries, :integer, limit: 1, default: 0, null: false
+  end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 267a55316..22210f7a2 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
 #
 # It's strongly recommended that you check this file into your version control system.
 
-ActiveRecord::Schema.define(version: 2020_08_18_160106) do
+ActiveRecord::Schema.define(version: 2020_08_21_051721) do
 
   # These are extensions that must be enabled in order to support this database
   enable_extension "plpgsql"
@@ -298,6 +298,7 @@ ActiveRecord::Schema.define(version: 2020_08_18_160106) do
     t.bigint "account_id"
     t.string "uri", null: false
     t.boolean "processed", default: false, null: false
+    t.integer "retries", limit: 2, default: 0, null: false
     t.index ["account_id"], name: "index_collection_items_on_account_id"
     t.index ["account_id"], name: "unprocessed_collection_item_account_ids", where: "(processed = false)"
     t.index ["id"], name: "unprocessed_collection_item_ids", order: :desc, where: "(processed = false)"