File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -65,17 +65,18 @@ http://www.soumu.go.jp/denshijiti/code.html
65
65
end
66
66
end
67
67
68
- desc '現在のyamlファイルのカラムをソートします'
69
- task sort_yaml : :environment do
70
- dojos = Dojo . load_attributes_from_yaml
71
-
72
- # Dojo column should start with 'name' for human-readability
73
- dojos . map! do |dojo |
74
- dojo . sort_by { |a , b | a . last } . to_h
75
- end
76
-
77
- Dojo . dump_attributes_to_yaml ( dojos )
78
- end
68
+ # NOTE: 2020年1月中はコメントアウトで残し、もし必要になる場面が無ければ翌月以降に削除する
69
+ # desc '現在のyamlファイルのカラムをソートします'
70
+ # task sort_yaml: :environment do
71
+ # dojos = Dojo.load_attributes_from_yaml
72
+ #
73
+ # # Dojo column should start with 'name' for human-readability
74
+ # dojos.map! do |dojo|
75
+ # dojo.sort_by { |a,b| a.last }.to_h
76
+ # end
77
+ #
78
+ # Dojo.dump_attributes_to_yaml(dojos)
79
+ # end
79
80
80
81
desc 'DBからyamlファイルを生成します'
81
82
task migrate_adding_id_to_yaml : :environment do
You can’t perform that action at this time.
0 commit comments