temporal_tables 0.6.1 → 0.6.2

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: d62499062a9e064ab78f44d40ad96dcd82936731662b8fc6c1920f5dfb5bb1f5
4
- data.tar.gz: 14ce63e0d1dfa16260132c0204671b2694823455623958177a46ce9d33e2ddc3
3
+ metadata.gz: a4f6546810d969fb905818b357aff6f3130a85e80cc1bc3037f5fb885660856e
4
+ data.tar.gz: e3e2167bdb2104ef7f2a56f9381e16b7648dc800b25785094a5ca3825277d980
5
5
  SHA512:
6
- metadata.gz: 217fa0285c8a7ad77f438e4236d50ccd35647cf1d3cd3dec127479b27e6a03f9597560943f11f8cbc28911e05a31c7788eeddfadfb7a766788fcb094ef2677f3
7
- data.tar.gz: 4dc597b2b6ee301b7bbba1852cc466b4c4ea67760e975dff38fefbf99804d2ac1fa960157357bff7d0ea2493acfedeb226e3b79f5d31086cb02b126064c0f7af
6
+ metadata.gz: fa67585d54cbfa598729a139b36b788f0f0cf7ca5e7bccdd6ac82a660f000467b56f8ac97c07fa967028a4f501397fa0901af9de309eb03f184afd029c0dbed7
7
+ data.tar.gz: 719e681acf4ae6f07a3de41fc7c7cbb3b7296e18d821a88bef7b82f62b618e0e4e64059672e20a2b60a60c834db69f45afec9df239b97d4068c7ded887a685bc
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- temporal_tables (0.6.0)
4
+ temporal_tables (0.6.2)
5
5
  rails (~> 5.2)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- temporal_tables (0.6.0)
4
+ temporal_tables (0.6.2)
5
5
  rails (~> 5.2)
6
6
 
7
7
  GEM
@@ -22,7 +22,7 @@ module TemporalTables
22
22
  subclass.send :prepend, TemporalTables::ConnectionAdapters.const_get(module_name) if TemporalTables::ConnectionAdapters.const_defined?(module_name)
23
23
  end
24
24
 
25
- ActiveRecord::Base.send :prepend, TemporalTables::Whodunnit
25
+ ActiveRecord::Base.send :include, TemporalTables::Whodunnit
26
26
  end
27
27
  end
28
28
 
@@ -30,6 +30,13 @@ module TemporalTables
30
30
  t.send c.type, c.name, :limit => c.limit
31
31
  end
32
32
  end
33
+
34
+ if TemporalTables.add_updated_by_field && !column_exists?(table_name, :updated_by)
35
+ change_table table_name do |t|
36
+ t.column :updated_by, TemporalTables.updated_by_type
37
+ end
38
+ end
39
+
33
40
  add_index temporal_name(table_name), [:id, :eff_to]
34
41
  create_temporal_triggers table_name
35
42
  create_temporal_indexes table_name
@@ -1,3 +1,3 @@
1
1
  module TemporalTables
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: temporal_tables
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brent Kroeker