-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🎸 chara_11 chara_12 のカラムを追加して実データの設計に合わせてインポートする (#264)
- Loading branch information
1 parent
acb3757
commit d62d4d8
Showing
6 changed files
with
45 additions
and
13 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
6 changes: 6 additions & 0 deletions
6
db/migrate/20220711075659_add_chara_columns_to_counting_bonus_vote.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,6 @@ | ||
class AddCharaColumnsToCountingBonusVote < ActiveRecord::Migration[7.0] | ||
def change | ||
add_column :counting_bonus_votes, :chara_11, :string | ||
add_column :counting_bonus_votes, :chara_12, :string | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
#!/bin/bash -xe | ||
|
||
# bin/rails runner "CountingAllCharacter.destroy_all" | ||
#bin/rails import_counting_all_characters:exec_all | ||
bin/rails runner "CountingAllCharacter.destroy_all" | ||
bin/rails import_counting_all_characters:exec_all | ||
|
||
bin/rails runner "CountingUniteAttack.destroy_all" | ||
bin/rails import_counting_unite_attacks:exec_all | ||
# bin/rails runner "CountingUniteAttack.destroy_all" | ||
# bin/rails import_counting_unite_attacks:exec_all | ||
|
||
# bin/rails runner "CountingBonusVote.destroy_all" | ||
# bin/rails import_counting_bonus_votes:exec_all | ||
bin/rails runner "CountingBonusVote.destroy_all" | ||
bin/rails import_counting_bonus_votes:exec_all | ||
|
||
# 開票イラストデータは独立しているのでここでインポートする | ||
bin/rails runner "Sheets::ResultIllustrationApplications.import_totallings_data_to_database" | ||
|
||
exit 0 |
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 |
---|---|---|
@@ -1,7 +1,23 @@ | ||
#!/bin/bash -xe | ||
|
||
# 単体・①オールキャラ部門 | ||
bin/rails runner "Sheets::WriteAndUpdate::FinalResults::AllCharactersStandAlone.new.exec" | ||
bin/rails runner "Sheets::WriteAndUpdate::FinalResults::UniteAttacks.new.exec" | ||
# TODO: ボーナス票 | ||
# bin/rails runner "Sheets::WriteAndUpdate::FinalResults::UniteAttacks.new.exec" | ||
|
||
# ボ・お題小説 | ||
bin/rails runner "Sheets::WriteAndUpdate::FinalResults::BonusVotes::ShortStories.new.exec" | ||
|
||
# ボ・開票イラスト | ||
bin/rails runner "Sheets::WriteAndUpdate::FinalResults::BonusVotes::ResultIllustrations.new.exec" | ||
|
||
# ボ・推し台詞 | ||
bin/rails runner "Sheets::WriteAndUpdate::FinalResults::BonusVotes::FavQuotes.new.exec" | ||
|
||
# ボ・選挙運動 | ||
bin/rails runner "Sheets::WriteAndUpdate::FinalResults::BonusVotes::SosenkyoCampaigns.new.exec" | ||
|
||
# ボ・OP・CLイラスト(オールキャラ) | ||
|
||
# 最終・①オールキャラ部門 | ||
|
||
exit 0 |