saseo 0.4.2 → 0.4.3

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
  SHA1:
3
- metadata.gz: efac319d8ac0d7bef303804e3f61c60ccd53770a
4
- data.tar.gz: 22795d70bf7e7c4f456f6a99fd34706bca550d25
3
+ metadata.gz: 365c9551971dcd5e511dd8bfceffbf60ead36c2f
4
+ data.tar.gz: 3cee7c15a02815d3c9fea3c92d6d85d61c21cd7c
5
5
  SHA512:
6
- metadata.gz: 6a95a035ec3290969b335a85effe1a9fe20d9666d1d9509cf840252b314e12e996a8212289dd10515d51e79676133e511f0000f5610317845bed2243b23fd2d1
7
- data.tar.gz: 1d0d3a181cbe04f17c2cffdb247ea5ee2c8c7fc73ccfc3ff2c67156725803f1a8b253ce92089657b8a93e3b061e413fd13027e72c858dc869de76905cba1aba5
6
+ metadata.gz: 78ffd353c6977bba243eceed9794711449d62a0df65b593bbf25005eb41da2cde0e591f4ff65e070628dba305d2b0d9dbb7135ec111af721156b80a402bffc7a
7
+ data.tar.gz: e3f4d6356a9c3b117bc9e1eccc301e1456a1035612c2e5f590f1cba8fe2493ece7ef28fde3ee577854f0dcb67ab56f0a88bd0f1faca4af32dd18b7d94a96b1af
@@ -0,0 +1,9 @@
1
+ class AllowNullIds < ActiveRecord::Migration
2
+ def up
3
+ change_column :saseo_versions, :item_id, :integer, null: true
4
+ end
5
+
6
+ def down
7
+ change_column :saseo_versions, :item_id, :integer, null: false
8
+ end
9
+ end
data/db/saseo/schema.rb CHANGED
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20151108210618) do
14
+ ActiveRecord::Schema.define(version: 20151116235958) do
15
15
 
16
16
  # These are extensions that must be enabled in order to support this database
17
17
  enable_extension "plpgsql"
@@ -19,7 +19,7 @@ ActiveRecord::Schema.define(version: 20151108210618) do
19
19
 
20
20
  create_table "saseo_versions", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t|
21
21
  t.integer "transaction_id", limit: 8, null: false
22
- t.integer "item_id", null: false
22
+ t.integer "item_id"
23
23
  t.uuid "item_uuid"
24
24
  t.string "table_name", null: false
25
25
  t.string "action", null: false
@@ -8,7 +8,6 @@ module Saseo
8
8
 
9
9
  validates :transaction_id, presence: true
10
10
  validates :table_name, presence: true
11
- validates :item_id, presence: true
12
11
  validates :action_timestamp, presence: true
13
12
  validates :action, presence: true, inclusion: {in: %w[INSERT UPDATE DELETE]}
14
13
  validates :whodunnit, presence: true
data/lib/saseo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Saseo
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saseo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Keyes
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-12 00:00:00.000000000 Z
11
+ date: 2015-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -202,6 +202,7 @@ files:
202
202
  - bin/setup
203
203
  - db/saseo/migrate/20151028181502_initial_schema.rb
204
204
  - db/saseo/migrate/20151108210618_add_indexes.rb
205
+ - db/saseo/migrate/20151116235958_allow_null_ids.rb
205
206
  - db/saseo/schema.rb
206
207
  - db/saseo_source/migrate/20151028181502_initial_schema.rb
207
208
  - db/saseo_source/schema.rb