-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This has been replace by a separate Note model. Searching of public bodies by their note content on `/body/list/all` is not possible due to the complex nature of the SQL query. A spec has been disabled due it now failing without the old notes column. This has been broken on WDTK for months without being noticed. Fixes #7254
- Loading branch information
Showing
14 changed files
with
202 additions
and
110 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class RemovePublicBodyNotes < ActiveRecord::Migration[6.1] | ||
def change | ||
reversible do |dir| | ||
dir.up do | ||
remove_column :public_body_translations, :notes | ||
end | ||
|
||
dir.down do | ||
PublicBody.add_translation_fields! notes: :text | ||
end | ||
end | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
geraldine_es_note_translation: | ||
id: 1 | ||
note_id: 2 | ||
locale: es | ||
body: | ||
created_at: 2007-10-24 10:51:01.161639 | ||
updated_at: 2007-10-24 10:51:01.161639 | ||
|
||
geraldine_en_note_translation: | ||
id: 2 | ||
note_id: 2 | ||
locale: en | ||
body: | ||
created_at: 2007-10-24 10:51:01.161639 | ||
updated_at: 2007-10-24 10:51:01.161639 | ||
|
||
humpadink_es_note_translation: | ||
id: 3 | ||
note_id: 3 | ||
locale: es | ||
body: Baguette | ||
created_at: 2007-10-24 10:51:01.161639 | ||
updated_at: 2007-10-24 10:51:01.161639 | ||
|
||
humpadink_en_note_translation: | ||
id: 4 | ||
note_id: 3 | ||
locale: en | ||
body: An albatross told me!!! | ||
created_at: 2007-10-24 10:51:01.161639 | ||
updated_at: 2007-10-24 10:51:01.161639 | ||
|
||
silly_walks_en_note_translation: | ||
id: 6 | ||
note_id: 5 | ||
locale: en | ||
body: You know the one. | ||
created_at: 2007-10-24 10:51:01.161639 | ||
updated_at: 2007-10-24 10:51:01.161639 | ||
|
||
sensible_walks_en_note_translation: | ||
id: 7 | ||
note_id: 6 | ||
locale: en | ||
body: I bet you’ve never heard of it. | ||
created_at: 2008-10-25 10:51:01.161639 | ||
updated_at: 2008-10-25 10:51:01.161639 | ||
|
||
other_note_translation: | ||
id: 8 | ||
note_id: 7 | ||
locale: en | ||
body: More notes | ||
created_at: 2008-10-25 10:51:01.161639 | ||
updated_at: 2008-10-25 10:51:01.161639 | ||
|
||
humpadink_he_IL_note_translation: | ||
id: 9 | ||
note_id: 3 | ||
locale: he_IL | ||
body: An albatross told me!!! | ||
created_at: 2007-10-24 10:51:01.161639 | ||
updated_at: 2007-10-24 10:51:01.161639 |
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,48 @@ | ||
# == Schema Information | ||
# Schema version: 20220928093559 | ||
# | ||
# Table name: notes | ||
# | ||
# id :bigint not null, primary key | ||
# notable_type :string | ||
# notable_id :bigint | ||
# notable_tag :string | ||
# created_at :datetime not null | ||
# updated_at :datetime not null | ||
# body :text | ||
# | ||
|
||
geraldine_note: | ||
id: 2 | ||
notable_type: PublicBody | ||
notable_id: 2 | ||
created_at: 2007-10-24 10:51:01.161639 | ||
updated_at: 2007-10-24 10:51:01.161639 | ||
|
||
humpadink_note: | ||
id: 3 | ||
notable_type: PublicBody | ||
notable_id: 3 | ||
created_at: 2007-10-24 10:51:01.161639 | ||
updated_at: 2007-10-24 10:51:01.161639 | ||
|
||
silly_walks_note: | ||
id: 5 | ||
notable_type: PublicBody | ||
notable_id: 5 | ||
created_at: 2007-10-24 10:51:01.161639 | ||
updated_at: 2007-10-24 10:51:01.161639 | ||
|
||
sensible_walks_note: | ||
id: 6 | ||
notable_type: PublicBody | ||
notable_id: 6 | ||
created_at: 2008-10-25 10:51:01.161639 | ||
updated_at: 2008-10-25 10:51:01.161639 | ||
|
||
other_note: | ||
id: 7 | ||
notable_type: PublicBody | ||
notable_id: 7 | ||
created_at: 2008-10-25 10:51:01.161639 | ||
updated_at: 2008-10-25 10:51:01.161639 |
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
Oops, something went wrong.