Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove legacy Proposals endorsements table (#5643)
* [DOC] Update changelog upgrade notes. * Remove legacy ProposalEndorsement related structures from database. * Fix syntax error * Fix bad automatic merge in changelog * Clean changelog entries from bad merge * Fix mistyped table name
- Loading branch information
1 parent
745a7da
commit 87ba1b2
Showing
4 changed files
with
22 additions
and
1 deletion.
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
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
8 changes: 8 additions & 0 deletions
8
decidim-proposals/db/migrate/20200120230130_drop_proposal_endorsements.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,8 @@ | ||
# frozen_string_literal: true | ||
|
||
class DropProposalEndorsements < ActiveRecord::Migration[5.2] | ||
def change | ||
drop_table :decidim_proposals_proposal_endorsements, if_exists: true, force: :restrict | ||
remove_column :decidim_proposals_proposals, :proposal_endorsements_count | ||
end | ||
end |