Skip to content

Commit

Permalink
rename migration
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Nov 9, 2023
1 parent 6b92acf commit 65f0aef
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# frozen_string_literal: true
# This migration comes from decidim_decidim_awesome (originally 20231006113841)

class CreateDecidimAwesomeWeightCaches < ActiveRecord::Migration[6.0]
class CreateDecidimAwesomeProposalExtraFields < ActiveRecord::Migration[6.0]
def change
create_table :decidim_awesome_weight_caches do |t|
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_proposals_weights_cache" }
t.references :decidim_proposal, null: false, index: { name: "decidim_awesome_extra_fields_on_proposal" }

t.jsonb :totals
t.jsonb :vote_weight_totals
t.integer :weight_total, default: 0
t.timestamps
end
Expand Down

0 comments on commit 65f0aef

Please sign in to comment.