Skip to content

Commit da27112

Browse files
committed
[ci skip] Configure encryption in active_record bug report template
1 parent 5251567 commit da27112

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CONTRIBUTING.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@
1515
* If you're unable to find an open issue addressing the problem, [open a new one](https://github.com/rails/rails/issues/new). Be sure to include a **title and clear description**, as much relevant information as possible, and a **code sample** or an **executable test case** demonstrating the expected behavior that is not occurring.
1616

1717
* If possible, use the relevant bug report templates to create the issue. Simply copy the content of the appropriate template into a .rb file, make the necessary changes to demonstrate the issue, and **paste the content into the issue description**:
18-
* [**Active Record** (models, database) issues](https://github.com/rails/rails/blob/main/guides/bug_report_templates/active_record.rb)
18+
* [**Active Record** (models, encryption, database) issues](https://github.com/rails/rails/blob/main/guides/bug_report_templates/active_record.rb)
19+
* [**Active Record Migrations** issues](https://github.com/rails/rails/blob/main/guides/bug_report_templates/active_record_migrations.rb)
20+
* [**Action View** (views, helpers) issues](https://github.com/rails/rails/blob/main/guides/bug_report_templates/action_view.rb)
21+
* [**Active Job** issues](https://github.com/rails/rails/blob/main/guides/bug_report_templates/active_job.rb)
22+
* [**Active Storage** issues](https://github.com/rails/rails/blob/main/guides/bug_report_templates/active_storage.rb)
23+
* [**Action Mailer** issues](https://github.com/rails/rails/blob/main/guides/bug_report_templates/action_mailer.rb)
24+
* [**Action Mailbox** issues](https://github.com/rails/rails/blob/main/guides/bug_report_templates/action_mailbox.rb)
1925
* [**Action Pack** (controllers, routing) issues](https://github.com/rails/rails/blob/main/guides/bug_report_templates/action_controller.rb)
2026
* [**Generic template** for other issues](https://github.com/rails/rails/blob/main/guides/bug_report_templates/generic.rb)
2127

guides/bug_report_templates/active_record.rb

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ class TestApp < Rails::Application
2323
config.eager_load = false
2424
config.logger = Logger.new($stdout)
2525
config.secret_key_base = "secret_key_base"
26+
27+
config.active_record.encryption.primary_key = "primary_key"
28+
config.active_record.encryption.deterministic_key = "deterministic_key"
29+
config.active_record.encryption.key_derivation_salt = "key_derivation_salt"
2630
end
2731
Rails.application.initialize!
2832

guides/source/contributing_to_ruby_on_rails.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Once you open an issue, it may or may not see activity right away unless it is a
3939

4040
Having a way to reproduce your issue will help people confirm, investigate, and ultimately fix your issue. You can do this by providing an executable test case. To make this process easier, we have prepared several bug report templates for you to use as a starting point:
4141

42-
* [Template for Active Record (models, database) issues](https://github.com/rails/rails/blob/main/guides/bug_report_templates/active_record.rb)
42+
* [Template for Active Record (models, encryption,database) issues](https://github.com/rails/rails/blob/main/guides/bug_report_templates/active_record.rb)
4343
* [Template for testing Active Record (migration) issues](https://github.com/rails/rails/blob/main/guides/bug_report_templates/active_record_migrations.rb)
4444
* [Template for Action Pack (controllers, routing) issues](https://github.com/rails/rails/blob/main/guides/bug_report_templates/action_controller.rb)
4545
* [Template for Action View (views, helpers) issues](https://github.com/rails/rails/blob/main/guides/bug_report_templates/action_view.rb)

0 commit comments

Comments
 (0)