active_outbox 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ef51af40668768f1f8b3acfcb1e81417f78bd676a1639beb6de68d0dd51b728
4
- data.tar.gz: 9e86368e8681ac70a24b4fce107bf786685f14ec1b0a8e89bd9e9a31eaae2117
3
+ metadata.gz: 0e7706d5483124adb87010ceb0c1dc612dbbef07e4cbb6f52eee2a0f817f99e9
4
+ data.tar.gz: f8762e7bc2517a5f2720d2d9617a29d8720cc18fa1cad2129ba017c5e95ef012
5
5
  SHA512:
6
- metadata.gz: c79cd51c61496564df983885127498d97317df6ff891f6b524aca691fbb52d396a49f1d7226f25e8cb5f09b7261adc40dc817991ddbd4e8c852cfa43fab6ce69
7
- data.tar.gz: 047f6720232490e3cb89379012ff6204e7f89e53b888cd20d2c45228bcb6f0ab9e0a04d6885087d5daedda2856e22640948cd35785b7c64108580195f34e78c0
6
+ metadata.gz: 277b1350289860ef9c2a33406fee80d8858ddf7dae84b62c0e960fe442e1645087d7c15ecd610e03e937faf8de8114c15a884f5b7807e276be0b7f58fcbff17b
7
+ data.tar.gz: a93fb735486c3ed1abfc524798e260b2945844b72bbf2a671e8ef04b48de15ed52fca3756e79882359599040a69055871d97f29c15a07bab94617590c38d2b68
@@ -16,6 +16,12 @@ module ActiveOutbox
16
16
  'string'
17
17
  end
18
18
 
19
+ def self.bigint_type
20
+ return 'bigint' if postgres? || mysql?
21
+
22
+ 'integer'
23
+ end
24
+
19
25
  def self.postgres?
20
26
  ActiveRecord::Base.connection.adapter_name.downcase == 'postgresql'
21
27
  end
@@ -50,7 +50,7 @@ module ActiveOutbox
50
50
  end
51
51
 
52
52
  def aggregate_identifier_type
53
- options['uuid'].present? ? ActiveOutbox::AdapterHelper.uuid_type : 'integer'
53
+ options['uuid'].present? ? ActiveOutbox::AdapterHelper.uuid_type : ActiveOutbox::AdapterHelper.bigint_type
54
54
  end
55
55
  end
56
56
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_outbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillermo Aguirre