-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add address and registered provider fields to dwellings
These are the fields that developers will fill in once a development is completed. We don't want to generate an audit log when a developer does this, so exclude those from the auditing, which then also requires us to do the same monkey patch as we did on Development to stop it generating a validation error when they are changed without an audit comment.
- Loading branch information
Showing
3 changed files
with
25 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class AddAddressAndRpToDwellings < ActiveRecord::Migration[6.0] | ||
def change | ||
add_column :dwellings, :address, :string | ||
add_reference :dwellings, :registered_provider, foreign_key: true | ||
end | ||
end |
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