-
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.
Remove teaching authority fields from countries
We're going to keep them only on regions to simplify the support console.
- Loading branch information
1 parent
d6c03e4
commit d38cd58
Showing
6 changed files
with
59 additions
and
60 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
29 changes: 29 additions & 0 deletions
29
db/migrate/20230904170502_remove_teaching_authority_from_countries.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,29 @@ | ||
class RemoveTeachingAuthorityFromCountries < ActiveRecord::Migration[7.0] | ||
def change | ||
change_table :countries, bulk: true do |t| | ||
t.remove :teaching_authority_address, | ||
type: :text, | ||
default: "", | ||
null: false | ||
t.remove :teaching_authority_certificate, | ||
type: :text, | ||
default: "", | ||
null: false | ||
t.remove :teaching_authority_emails, | ||
type: :text, | ||
default: [], | ||
null: false, | ||
array: true | ||
t.remove :teaching_authority_name, type: :text, default: "", null: false | ||
t.remove :teaching_authority_online_checker_url, | ||
type: :string, | ||
default: "", | ||
null: false | ||
t.remove :teaching_authority_websites, | ||
type: :text, | ||
default: [], | ||
null: false, | ||
array: true | ||
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