README.md in umbrellio-sequel-plugins-0.4.0.134 vs README.md in umbrellio-sequel-plugins-0.4.0.145
- old
+ new
@@ -19,12 +19,12 @@
- [`CurrencyRates`](#CurrencyRates)
- [`PGTools`](#PGTools)
- [`Slave`](#Slave)
- [`Synchronize`](#Synchronize)
-- [`methods_in_migrations`](#methods_in_migrations)
-- [`deferrable_foreign_keys`](#deferrable_foreign_keys)
+- [`Methods in Migrations`](#Methods-in-Migrations)
+- [`Deferrable Foreign Keys`](#Deferrable-Foreign-Keys)
# Plugins
- [`AttrEncrypted`](#AttrEncrypted)
- [`Duplicate`](#Duplicate)
@@ -223,10 +223,10 @@
end
end
class Order < Sequel::Model
attr_encrypted :first_name, :last_name, key: Settings.private_key
- attr_encrypted :secret_data, key: Settings.another_private_key, json: true
+ attr_encrypted :secret_data, key: Settings.another_private_key
end
Order.create(first_name: "Ivan")
# => INSERT INTO "orders" ("encrypted_first_name") VALUES ('/sTi9Q==$OTpuMRq5k8R3JayQ$WjSManQGP9UaZ3C40yDjKg==')