diff --git a/app/models/policy_version.rb b/app/models/policy_version.rb index 88f125cb93..1c83aa61e8 100644 --- a/app/models/policy_version.rb +++ b/app/models/policy_version.rb @@ -30,7 +30,7 @@ class PolicyVersion < Sequel::Model(:policy_versions) # The authenticated user who performs the policy load. many_to_one :role - one_to_many :policy_log, key: [:policy_id, :version] + one_to_many :policy_log, key: %i[policy_id version] attr_accessor :parse_error, :policy_filename, :delete_permitted diff --git a/cucumber/rotators/features/support/rotator_helpers.rb b/cucumber/rotators/features/support/rotator_helpers.rb index 9c74f79a6b..832961acca 100644 --- a/cucumber/rotators/features/support/rotator_helpers.rb +++ b/cucumber/rotators/features/support/rotator_helpers.rb @@ -57,7 +57,7 @@ def pg_history_after_rotation(var_name:, db_user:, orig_pw:) # `PgRotatingPassword` is considered to be `nil`. # # This avoids possible race conditions with the actual rotation thread -- - # its possible we could "reading" here at the same time the rotation process + # it's possible we could "reading" here at the same time the rotation process # has only "written" one of the two passwords that need to be kept in sync. # PgRotatingPassword ||= Struct.new(:var_name, :db_user, :variable_meth) do