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 +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +1 -1
- data/lib/active_record_anonymizer/version.rb +1 -1
- data/lib/generators/active_record_anonymizer/templates/migration.rb.erb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: accaa24dbcdc414be0593165f5a3bca83f768e16ad61a480118a4967d90febf3
|
4
|
+
data.tar.gz: 5156c1f4e640a004a3ec724e2328712ba7aa8e2eb5456d714906044d6eaaad9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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
|
6
|
+
add_column :<%= table_name %>, :<%= "anonymized_#{column.name}" %>, :<%= column.type %>
|
7
7
|
<% end -%>
|
8
8
|
end
|
9
9
|
|