-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove old YAML format for versions data
We now use JSON to store all versions data, and have converted the existing YAML into JSON. Remove the YAML copy of the old data. Signed-off-by: David A. Wheeler <[email protected]>
- Loading branch information
1 parent
9cb2be8
commit 06d28da
Showing
2 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
db/migrate/20241219131058_remove_old_yaml_object_from_versions.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,12 @@ | ||
# frozen_string_literal: true | ||
|
||
# Remove old_yaml_object. We now store version information in the | ||
# column "object" in JSON format and we have converted all the data in | ||
# YAML format to the JSON format. We *could* retain the YAML copy, | ||
# but it takes up a lot of space for no gain. | ||
|
||
class RemoveOldYamlObjectFromVersions < ActiveRecord::Migration[7.1] | ||
def change | ||
remove_column :versions, :old_yaml_object, :text | ||
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