-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Record who created a suitability record
This adds a field on the suitability records that we can use to track who created the record.
- Loading branch information
1 parent
2124a78
commit 47902de
Showing
7 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -334,6 +334,7 @@ | |
- archived_at | ||
- country_code | ||
- created_at | ||
- created_by | ||
- date_of_birth | ||
- id | ||
- updated_at | ||
|
14 changes: 14 additions & 0 deletions
14
db/migrate/20240716075611_add_created_by_to_suitability_records.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# frozen_string_literal: true | ||
|
||
class AddCreatedByToSuitabilityRecords < ActiveRecord::Migration[7.1] | ||
def change | ||
# rubocop:disable Rails/NotNullColumn | ||
add_reference :suitability_records, | ||
:created_by, | ||
foreign_key: { | ||
to_table: :staff, | ||
}, | ||
null: false | ||
# rubocop:enable Rails/NotNullColumn | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters