active_record_anonymizer 0.1.1 → 0.2.0

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: 3c73430fdcaf6abc9be48923e1470d563ee313d2c2347539df53951a38d1f80f
4
- data.tar.gz: 8cd49317b132d36486bb8a1d627413783dcb84caecee5b726b8e516ea6434dfd
3
+ metadata.gz: accaa24dbcdc414be0593165f5a3bca83f768e16ad61a480118a4967d90febf3
4
+ data.tar.gz: 5156c1f4e640a004a3ec724e2328712ba7aa8e2eb5456d714906044d6eaaad9f
5
5
  SHA512:
6
- metadata.gz: 8b59a6dacc1a10953cd6a4aa63bea0a938113b0f443964dabdf4560d384c9e1073728d16d8977aca4eb9abd8e70e46fca2e3dfc9e0b36d17160471c91d749dda
7
- data.tar.gz: 3f29ec54f264b9950e0783d8ba616e05910c64a79e408516c6dd63bed248f3fe04a4664c159db8c6cceb9c009250a429de29e994be6f7113112fa71be895ba43
6
+ metadata.gz: e0d564e874192ad8e7b96e532a31ba2deb9eddf34b9cf59a23ec9215c3473be25d80def9f0cdf864493e1c058c846d5f3c203824894399a14e54a52e1e358872
7
+ data.tar.gz: eb34e64d248a9329fca5cdeccd6c2a1efe5603febde87cf96341a1e897f31f842b48826af3c4e1094e5b2ba5733c91e014f57b375b8e22667af21ad62f89c10b
data/CHANGELOG.md CHANGED
@@ -5,3 +5,13 @@
5
5
  #### Fixed migration_version not getting generated in Rails v5+
6
6
 
7
7
  * [GitHub PR](https://github.com/keshavbiswa/active_record_anonymizer/pull/6)
8
+
9
+ ## Version 0.2.0
10
+
11
+ ### New Fixes
12
+
13
+ #### Removed index from migration
14
+
15
+ * [GitHub PR](https://github.com/keshavbiswa/active_record_anonymizer/pull/7)
16
+
17
+ #### Fixed incorrect generator name in README.md
data/README.md CHANGED
@@ -34,7 +34,7 @@ Install the gem using the following command:
34
34
  You must have anonymized columns in your Model to store the anonymized data.
35
35
  You can use the following migration generator to add anonymized columns to your existing table:
36
36
 
37
- $ bin/rails generate anonymize User first_name last_name
37
+ $ bin/rails generate active_record_anonymizer:anonymize User first_name last_name
38
38
  This will generate a migration file similar to the following:
39
39
 
40
40
  ```ruby
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveRecordAnonymizer
4
- VERSION = "0.1.1"
4
+ VERSION = "0.2.0"
5
5
  end
@@ -3,7 +3,7 @@
3
3
  class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
4
4
  def self.up
5
5
  <% attributes.each do |column| -%>
6
- add_column :<%= table_name %>, :<%= "anonymized_#{column.name}" %>, :<%= column.type %>, index: <%= column.has_index? %>, unique: <%= column.has_uniq_index? %>
6
+ add_column :<%= table_name %>, :<%= "anonymized_#{column.name}" %>, :<%= column.type %>
7
7
  <% end -%>
8
8
  end
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_anonymizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keshav Biswa