README.md in lockbox-1.3.0 vs README.md in lockbox-1.3.1
- old
+ new
@@ -7,11 +7,11 @@
- Makes migrating existing data and key rotation easy
- Has zero dependencies and many integrations
Learn [the principles behind it](https://ankane.org/modern-encryption-rails), [how to secure emails with Devise](https://ankane.org/securing-user-emails-lockbox), and [how to secure sensitive data in Rails](https://ankane.org/sensitive-data-rails).
-[![Build Status](https://github.com/ankane/lockbox/workflows/build/badge.svg?branch=master)](https://github.com/ankane/lockbox/actions)
+[![Build Status](https://github.com/ankane/lockbox/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/lockbox/actions)
## Installation
Add this line to your application’s Gemfile:
@@ -70,11 +70,11 @@
## Active Record
Create a migration with:
```ruby
-class AddEmailCiphertextToUsers < ActiveRecord::Migration[7.0]
+class AddEmailCiphertextToUsers < ActiveRecord::Migration[7.1]
def change
add_column :users, :email_ciphertext, :text
end
end
```
@@ -247,11 +247,11 @@
**Note:** Action Text uses direct uploads for files, which cannot be encrypted with application-level encryption like Lockbox. This only encrypts the database field.
Create a migration with:
```ruby
-class AddBodyCiphertextToRichTexts < ActiveRecord::Migration[7.0]
+class AddBodyCiphertextToRichTexts < ActiveRecord::Migration[7.1]
def change
add_column :action_text_rich_texts, :body_ciphertext, :text
end
end
```
@@ -378,11 +378,11 @@
Encryption is applied to all versions after processing.
You can mount the uploader [as normal](https://github.com/carrierwaveuploader/carrierwave#activerecord). With Active Record, this involves creating a migration:
```ruby
-class AddLicenseToUsers < ActiveRecord::Migration[7.0]
+class AddLicenseToUsers < ActiveRecord::Migration[7.1]
def change
add_column :users, :license, :string
end
end
```
@@ -906,11 +906,11 @@
## Binary Columns
You can use `binary` columns for the ciphertext instead of `text` columns.
```ruby
-class AddEmailCiphertextToUsers < ActiveRecord::Migration[7.0]
+class AddEmailCiphertextToUsers < ActiveRecord::Migration[7.1]
def change
add_column :users, :email_ciphertext, :binary
end
end
```
@@ -957,11 +957,11 @@
```
Create a migration with:
```ruby
-class MigrateToLockbox < ActiveRecord::Migration[7.0]
+class MigrateToLockbox < ActiveRecord::Migration[7.1]
def change
add_column :users, :name_ciphertext, :text
add_column :users, :email_ciphertext, :text
end
end
@@ -990,10 +990,10 @@
```
Then remove the previous gem from your Gemfile and drop its columns.
```ruby
-class RemovePreviousEncryptedColumns < ActiveRecord::Migration[7.0]
+class RemovePreviousEncryptedColumns < ActiveRecord::Migration[7.1]
def change
remove_column :users, :encrypted_name, :text
remove_column :users, :encrypted_name_iv, :text
remove_column :users, :encrypted_email, :text
remove_column :users, :encrypted_email_iv, :text