sequel_audited 0.2.1 → 0.2.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
  SHA1:
3
- metadata.gz: ff58cb99b94d066607cbbfe4871a49fc304fa7d9
4
- data.tar.gz: 4125a2f37a0dc1dba0b36c6871b2501a54cb7569
3
+ metadata.gz: d1c522f64124c4093fff4db0c1b0eb04b1b17f30
4
+ data.tar.gz: 266a5f62f3b2fb74d87176d83865f4edb80ecf04
5
5
  SHA512:
6
- metadata.gz: e69aa43e8347cdb92425864573713373e2230305930692b1a390d5674f763cb3e656886f29f65817ae6cb06b5fc201920961851c44c6fe5ee4c761e54631be85
7
- data.tar.gz: 01051cd08db1ef8595101a86a8ad7b9e87b714d6f10a88081e8e717f118a24351c24919bdcac95cbfb777a9ac5ad7545a0efe36db9195a10690b118c3a9f3198
6
+ metadata.gz: 2b8e45785ca3bb92f03cc6377320730902d594ce630cc1fd73ae66cdd176c47ef1199ccd7fb46a6b8c43123e5d8716a67096b0bd398e5659c6ff8408640f6547
7
+ data.tar.gz: 1ad56a6b8e2cf0b50bc69bd661a7eb280759b387f29f632784a3389570e103c1dd9b4c4326f48c8d873be8e550dd42e4c59caa05c9928b5065b4df3a7b85d5d4
data/Rakefile CHANGED
@@ -1,11 +1,9 @@
1
1
  require 'bundler/gem_tasks'
2
2
  require 'rake/testtask'
3
- #
4
- #
3
+ #
4
+ #
5
5
  OSX = RUBY_PLATFORM.match(/darwin/)
6
6
 
7
-
8
-
9
7
  Rake::TestTask.new(:spec) do |t|
10
8
  t.libs << 'spec'
11
9
  t.libs << 'lib'
@@ -5,7 +5,7 @@ module Sequel
5
5
  #
6
6
  module Audited
7
7
 
8
- VERSION = '0.2.1'
8
+ VERSION = '0.2.2'
9
9
 
10
10
  end
11
11
  end
@@ -8,10 +8,13 @@ Sequel.migration do
8
8
  Integer :associated_id
9
9
  String :event
10
10
  String :changed, text: true
11
- Integer :version, default: 0
11
+ Integer :version
12
12
  Integer :modifier_id
13
- String :modifier_type, default: 'User'
13
+ String :modifier_type
14
14
  DateTime :created_at
15
+
16
+ index [:associated_type, :associated_id]
17
+ index [:modifier_type, :modifier_id]
15
18
  end
16
19
  end
17
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel_audited
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kematzy
@@ -62,8 +62,8 @@ files:
62
62
  - lib/sequel/audited.rb
63
63
  - lib/sequel/audited/version.rb
64
64
  - lib/sequel/plugins/audited.rb
65
- - lib/tasks/sequel-audited/migrate.rake
66
- - lib/tasks/sequel-audited/templates/audited_migration.rb
65
+ - lib/tasks/sequel_audited/migrate.rake
66
+ - lib/tasks/sequel_audited/templates/audited_migration.rb
67
67
  - sequel_audited.gemspec
68
68
  homepage: https://github.com/jnylen/sequel_audited
69
69
  licenses: