-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Bump homepage proposals and custom proposal states
- Loading branch information
1 parent
56787be
commit 8b111e9
Showing
4 changed files
with
46 additions
and
2 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
13 changes: 13 additions & 0 deletions
13
db/migrate/20240103110734_change_default_value_for_decidim_endorsements.decidim.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,13 @@ | ||
# frozen_string_literal: true | ||
|
||
# This migration comes from decidim (originally 20231027142329) | ||
|
||
class ChangeDefaultValueForDecidimEndorsements < ActiveRecord::Migration[6.0] | ||
def up | ||
change_column_default :decidim_endorsements, :decidim_user_group_id, 0 | ||
end | ||
|
||
def down | ||
change_column_default :decidim_endorsements, :decidim_user_group_id, nil | ||
end | ||
end |
15 changes: 15 additions & 0 deletions
15
db/migrate/20240103110735_create_decidim_awesome_vote_weights.decidim_decidim_awesome.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,15 @@ | ||
# frozen_string_literal: true | ||
|
||
# This migration comes from decidim_decidim_awesome (originally 20231006113837) | ||
|
||
class CreateDecidimAwesomeVoteWeights < ActiveRecord::Migration[6.0] | ||
def change | ||
create_table :decidim_awesome_vote_weights do |t| | ||
# this might be polymorphic in the future (if other types of votes are supported) | ||
t.references :proposal_vote, null: false, index: { name: "decidim_awesome_proposals_weights_vote" } | ||
|
||
t.integer :weight, null: false, default: 1 | ||
t.timestamps | ||
end | ||
end | ||
end |
16 changes: 16 additions & 0 deletions
16
...te/20240103110736_create_decidim_awesome_proposal_extra_fields.decidim_decidim_awesome.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,16 @@ | ||
# frozen_string_literal: true | ||
|
||
# This migration comes from decidim_decidim_awesome (originally 20231006113841) | ||
|
||
class CreateDecidimAwesomeProposalExtraFields < ActiveRecord::Migration[6.0] | ||
def change | ||
create_table :decidim_awesome_proposal_extra_fields do |t| | ||
# this might be polymorphic in the future (if other types of votes are supported) | ||
t.references :decidim_proposal, null: false, index: { name: "decidim_awesome_extra_fields_on_proposal" } | ||
|
||
t.jsonb :vote_weight_totals | ||
t.integer :weight_total, default: 0 | ||
t.timestamps | ||
end | ||
end | ||
end |