railbox 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e7c53ea3b3e9b5c1f7a67c19273456d4cedb978257834328db3b1a3e058e0bf
4
- data.tar.gz: 2832aeeb9558208d4ba229828403459422fcd19ea765ac193b63067031746349
3
+ metadata.gz: 8288bdb997d56c541329eed5c0dadda7c6c3b7d14a5796cc146c3ff183b56fda
4
+ data.tar.gz: 8c51b795c45826283891f4f6bedb9944064499fdb90eba4d0cfdb26fb135f239
5
5
  SHA512:
6
- metadata.gz: 670dbf35a4f62c0c81a779bc5d1f2e4af414f13b6d72064fbfd0eedc1bfd5097617c7f6508b8bc2abe082dea5927e5da4dfa78a23dfca0e38dda92c9b77def7a
7
- data.tar.gz: ffdd4cc4dd8bd242483ac8b61fecacb3a9b69104d3931c3cead162a6b0c7601e2dfa0381d74005facdf1967b533643b61c242b867029e8b6b6e04f5f3b33c10d
6
+ metadata.gz: 77d9775e1701a7c476868e408918a5cf59ecaf2493e2ccbb5c2af1c14b60752e030abb237a1c21b223bca23e83dcc7b7d69cceb6ee2582355c54ab6d1d5301c8
7
+ data.tar.gz: dcdc42f6ab3c70380b4835de2218c03b38798ed97ff53eb01d9310468043eb8089024493e3bbfafac84befe06357b1a2ba8101a2ecdac872e5b0207e0c861b12
@@ -0,0 +1,21 @@
1
+ class CreateTransactionalOutbox < ActiveRecord::Migration[7.0]
2
+ def change
3
+ create_table :transactional_outboxes do |t|
4
+ t.string :action_type, null: false
5
+ t.jsonb :action_data, null: false, default: {}
6
+ t.string :status, null: false
7
+ t.string :entity_type
8
+ t.integer :entity_id
9
+ t.jsonb :query, default: {}
10
+ t.jsonb :body, default: {}
11
+ t.jsonb :headers, default: {}
12
+ t.jsonb :meta, default: {}
13
+ t.integer :attempts, default: 0
14
+ t.datetime :retry_at
15
+ t.jsonb :failure_reasons, array: true, default: []
16
+ t.timestamps
17
+ end
18
+
19
+ add_index :transactional_outboxes, [:entity_type, :entity_id]
20
+ end
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Egor Beresnev
@@ -158,6 +158,7 @@ extensions: []
158
158
  extra_rdoc_files: []
159
159
  files:
160
160
  - lib/generators/railbox/install/install_generator.rb
161
+ - lib/generators/railbox/install/templates/migration.rb.tt
161
162
  - lib/railbox.rb
162
163
  - lib/railbox/exceptions/queue_error.rb
163
164
  - lib/railbox/exceptions/validation_error.rb