-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2426 from MushroomObserver/translations-term-date
Switch search translation tag keys from `_date` to `_when`
- Loading branch information
Showing
3 changed files
with
17 additions
and
3 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
14 changes: 14 additions & 0 deletions
14
db/migrate/20240916224214_change_search_term_date_translation_tags.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 @@ | ||
class ChangeSearchTermDateTranslationTags < ActiveRecord::Migration[7.1] | ||
def up | ||
TranslationString.rename_tags( | ||
{ search_term_date: :search_term_when, | ||
observation_term_date: :observation_term_when } | ||
) | ||
end | ||
def down | ||
TranslationString.rename_tags( | ||
{ search_term_when: :search_term_date, | ||
observation_term_when: :observation_term_date } | ||
) | ||
end | ||
end |