-
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.
Rename teaching authority information fields
This renames the fields to remove the reference to the teaching authority as that's not really relevant, and it allows us to make a better distinction between what's specific to the authority and what's more about the country.
- Loading branch information
1 parent
681ca9f
commit b8a648f
Showing
9 changed files
with
118 additions
and
103 deletions.
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
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
15 changes: 15 additions & 0 deletions
15
db/migrate/20230904131351_rename_teaching_authority_information.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,15 @@ | ||
class RenameTeachingAuthorityInformation < ActiveRecord::Migration[7.0] | ||
def change | ||
change_table :countries, bulk: true do |t| | ||
t.rename :teaching_authority_other, :other_information | ||
t.rename :teaching_authority_status_information, :status_information | ||
t.rename :teaching_authority_sanction_information, :sanction_information | ||
end | ||
|
||
change_table :regions, bulk: true do |t| | ||
t.rename :teaching_authority_other, :other_information | ||
t.rename :teaching_authority_status_information, :status_information | ||
t.rename :teaching_authority_sanction_information, :sanction_information | ||
end | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.