1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/models
Jorge Manrubia f78a480818 Encourage deterministic encryption to remain unchanged
This implements several changes to encourage deterministic encryption to
remain unchanged. The main motivation is letting you define unique
indexes on deterministically-encrypted columns:

- By default, deterministic encryption will always use the oldest
encryption scheme to encrypt new data, when there are many.
- You can skip this default behavior and make it always use the current
encryption scheme with:

```ruby
deterministic: { fixed: false } # using this should be a rare need
```

- Deterministic encryption still supports previous encryption schemes
normally. So they will be used to add additional values to queries, for
example.
- You can't rotate deterministic encryption keys anymore. We can add
support for that in the future.

This makes for reasonable defaults:

- People using "deterministic: true" will get unique indexes working out
of the box.
- The system will encourage keeping deterministic encryption stable:
  - By always using oldest encryption schemes
  - By forbidding configuring multiple keys

But you can still opt-out of the default if you need to.
2021-04-01 15:02:15 +02:00
..
admin
autoloadable
publisher
account.rb
admin.rb
aircraft.rb
arunit2_model.rb
author.rb Extract encrypted models to their own files 2021-04-01 15:02:14 +02:00
author_encrypted.rb Encourage deterministic encryption to remain unchanged 2021-04-01 15:02:15 +02:00
auto_id.rb
binary.rb
binary_field.rb Handle binary strings in Active Record serialized columns 2020-10-14 11:57:34 +02:00
bird.rb
book.rb Extract encrypted models to their own files 2021-04-01 15:02:14 +02:00
book_destroy_async.rb Destroy associations in a background job. 2020-09-24 14:24:15 -04:00
book_encrypted.rb Fix test 2021-04-01 15:02:14 +02:00
boolean.rb
bulb.rb Implicit scoping does no longer leak scope to class level querying methods 2020-10-30 00:25:38 +00:00
cake_designer.rb
car.rb
carrier.rb
cart.rb Don't over protect the MySQL users on insert_all 2020-11-04 20:26:22 +00:00
cat.rb
categorization.rb
category.rb
chef.rb
citation.rb Fix has_many_inversing with touch: true on a belongs_to association with inverse 2021-01-07 22:15:24 +00:00
club.rb Fix "NoMethodError: undefined method -@'" for source_type` with a symbol 2021-01-13 04:52:07 +09:00
college.rb
column.rb
column_name.rb
comment.rb Allow preload grouping of through associations 2021-03-15 12:36:21 -07:00
company.rb Avoid stack level too deep in predicate builder 2021-02-11 11:32:20 -05:00
company_in_module.rb
computer.rb
contact.rb
content.rb
contract.rb Fix complicated has_many through with nested where condition 2021-01-05 11:40:04 +09:00
country.rb
course.rb
customer.rb Fix composed_of with symbol mapping 2020-12-15 20:06:23 +09:00
customer_carrier.rb
dashboard.rb Revert "Refactor uncastable through reflection test to detect join key overrides" 2020-09-25 17:49:52 -04:00
default.rb
department.rb
destroy_async_parent.rb Destroy associations in a background job. 2020-09-24 14:24:15 -04:00
destroy_async_parent_soft_delete.rb Destroy associations in a background job. 2020-09-24 14:24:15 -04:00
developer.rb Handle false in relation strict loading checks 2021-03-16 16:26:59 -04:00
discount.rb Reproduce the preloader regression in #41596 2021-03-15 12:36:21 -07:00
dl_keyed_belongs_to.rb Destroy associations in a background job. 2020-09-24 14:24:15 -04:00
dl_keyed_belongs_to_soft_delete.rb Destroy associations in a background job. 2020-09-24 14:24:15 -04:00
dl_keyed_has_many.rb Destroy associations in a background job. 2020-09-24 14:24:15 -04:00
dl_keyed_has_many_through.rb Destroy associations in a background job. 2020-09-24 14:24:15 -04:00
dl_keyed_has_one.rb Destroy associations in a background job. 2020-09-24 14:24:15 -04:00
dl_keyed_join.rb Destroy associations in a background job. 2020-09-24 14:24:15 -04:00
dog.rb
dog_lover.rb
doubloon.rb
drink_designer.rb
edge.rb
electron.rb
engine.rb
entrant.rb
entry.rb
essay.rb
essay_destroy_async.rb Handle STI models for has_many dependent: :destroy_async 2021-01-06 02:04:23 +01:00
event.rb
eye.rb
face.rb Set inverse during has one autosave if necessary 2020-10-30 15:31:40 +00:00
family.rb
family_tree.rb
friendship.rb
frog.rb
guid.rb
guitar.rb
hotel.rb
human.rb Set inverse during has one autosave if necessary 2020-10-30 15:31:40 +00:00
image.rb
interest.rb
invoice.rb Reproduce the preloader regression in #41596 2021-03-15 12:36:21 -07:00
item.rb
job.rb
joke.rb
keyboard.rb
legacy_thing.rb
lesson.rb
line_item.rb Reproduce the preloader regression in #41596 2021-03-15 12:36:21 -07:00
liquid.rb
matey.rb
measurement.rb
member.rb
member_detail.rb
member_type.rb
membership.rb
mentor.rb
message.rb
minimalistic.rb
minivan.rb
mixed_case_monkey.rb
molecule.rb
mouse.rb
movie.rb
node.rb
non_primary_key.rb
notification.rb
numeric_data.rb Fix read_attribute_before_type_cast to consider attribute aliases 2020-10-18 20:32:47 -03:00
order.rb
organization.rb
other_dog.rb
owner.rb
parrot.rb Don't like to add extra models/tables/fixtures, use existing those 2021-02-25 11:32:44 +09:00
person.rb
personal_legacy_thing.rb
pet.rb
pet_treasure.rb
pirate.rb
possession.rb
post.rb Extract encrypted models to their own files 2021-04-01 15:02:14 +02:00
post_encrypted.rb Extract encrypted models to their own files 2021-04-01 15:02:14 +02:00
price_estimate.rb
professor.rb
project.rb
publisher.rb
randomly_named_c1.rb
rating.rb
reader.rb
recipe.rb
record.rb
reference.rb
reply.rb
room.rb Fixed odd behavior of inverse_of with multiple belongs_to to same class 2020-11-21 02:06:21 +09:00
section.rb
seminar.rb
session.rb
ship.rb
ship_part.rb
shipping_line.rb Reproduce the preloader regression in #41596 2021-03-15 12:36:21 -07:00
shop.rb
shop_account.rb
speedometer.rb
sponsor.rb
squeak.rb
strict_zine.rb Ignore strict loading violations on instances loaded through fixtures 2020-12-10 15:23:14 -06:00
string_key_object.rb
student.rb
subscriber.rb Revert "Refactor uncastable through reflection test to detect join key overrides" 2020-09-25 17:49:52 -04:00
subscription.rb Revert "Refactor uncastable through reflection test to detect join key overrides" 2020-09-25 17:49:52 -04:00
tag.rb
tagging.rb
task.rb
topic.rb Implicit scoping does no longer leak scope to class level querying methods 2020-10-30 00:25:38 +00:00
toy.rb Fix has_many_inversing with touch: true on a belongs_to association with inverse 2021-01-07 22:15:24 +00:00
traffic_light.rb Extract encrypted models to their own files 2021-04-01 15:02:14 +02:00
traffic_light_encrypted.rb Extract encrypted models to their own files 2021-04-01 15:02:14 +02:00
treasure.rb
treaty.rb
tree.rb
tuning_peg.rb
tyre.rb
user.rb Fixed odd behavior of inverse_of with multiple belongs_to to same class 2020-11-21 02:06:21 +09:00
user_with_invalid_relation.rb compute_class raise when klass is not ActiveRecord::Base subclass 2020-12-14 14:49:14 +01:00
uuid_child.rb
uuid_comment.rb Allow delegated_type to be specified primary_key and foreign_key 2020-12-18 15:06:16 +09:00
uuid_entry.rb Allow delegated_type to be specified primary_key and foreign_key 2020-12-18 15:06:16 +09:00
uuid_item.rb
uuid_message.rb Allow delegated_type to be specified primary_key and foreign_key 2020-12-18 15:06:16 +09:00
uuid_parent.rb
vegetables.rb
vertex.rb
warehouse_thing.rb
wheel.rb
without_table.rb
zine.rb Ignore strict loading violations on instances loaded through fixtures 2020-12-10 15:23:14 -06:00