Skip to content

Commit

Permalink
feat: 🎸 「開票イラスト状況」の列のユニーク制限を緩和した (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikukyugamer authored Jun 22, 2022
1 parent e496d6d commit 9bcb0e4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class ChangeUniqueToOnRawSheetResultIllustrationTotallings < ActiveRecord::Migration[7.0]
def up
# ユニーク制約を除外するため、インデックスを外してから付け直す
remove_index :on_raw_sheet_result_illustration_totallings, :character_name_for_public
add_index :on_raw_sheet_result_illustration_totallings, :character_name_for_public, name: 'c_name_for_public_index'
end

def down
# ユニーク制約を付与するため、インデックスを外してから付け直す
remove_index :on_raw_sheet_result_illustration_totallings, :character_name_for_public
add_index :on_raw_sheet_result_illustration_totallings, :character_name_for_public, unique: true, name: 'c_name_for_public_index'
end
end
4 changes: 2 additions & 2 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9bcb0e4

Please sign in to comment.