Sha256: e93d25dfaf27c07dcb2a796e6f6ccdae6d8e6032e41fe7eab6cb1d47b415c884

Contents?: true

Size: 497 Bytes

Versions: 7

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-decidim_awesome-0.11.3 db/migrate/20231006113841_create_decidim_awesome_proposal_extra_fields.rb
decidim-decidim_awesome-0.10.3 db/migrate/20231006113841_create_decidim_awesome_proposal_extra_fields.rb
decidim-decidim_awesome-0.11.2 db/migrate/20231006113841_create_decidim_awesome_proposal_extra_fields.rb
decidim-decidim_awesome-0.11.1 db/migrate/20231006113841_create_decidim_awesome_proposal_extra_fields.rb
decidim-decidim_awesome-0.10.2 db/migrate/20231006113841_create_decidim_awesome_proposal_extra_fields.rb
decidim-decidim_awesome-0.10.1 db/migrate/20231006113841_create_decidim_awesome_proposal_extra_fields.rb
decidim-decidim_awesome-0.10.0 db/migrate/20231006113841_create_decidim_awesome_proposal_extra_fields.rb