Skip to content

Commit

Permalink
fix: Avoid duplicated state
Browse files Browse the repository at this point in the history
  • Loading branch information
AyakorK committed Jan 18, 2024
1 parent 0e93e7d commit 5933649
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class AddIndexToDecidimProposalsProposalsProposalVotesCount < ActiveRecord::Migr
def change
add_index :decidim_proposals_proposals, :proposal_votes_count
add_index :decidim_proposals_proposals, :created_at
add_index :decidim_proposals_proposals, :state
add_index :decidim_proposals_proposals, :state unless index_exists?(:decidim_proposals_proposals, :state)
end
end

0 comments on commit 5933649

Please sign in to comment.