Sha256: 93e17a114b20ab2a261567f9de0d3e233f3feac3e44aaebf616197efaa7ebf53

Contents?: true

Size: 448 Bytes

Versions: 6

Compression:

Stored size: 448 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-decidim_awesome-0.10.3 db/migrate/20231006113837_create_decidim_awesome_vote_weights.rb
decidim-decidim_awesome-0.11.2 db/migrate/20231006113837_create_decidim_awesome_vote_weights.rb
decidim-decidim_awesome-0.11.1 db/migrate/20231006113837_create_decidim_awesome_vote_weights.rb
decidim-decidim_awesome-0.10.2 db/migrate/20231006113837_create_decidim_awesome_vote_weights.rb
decidim-decidim_awesome-0.10.1 db/migrate/20231006113837_create_decidim_awesome_vote_weights.rb
decidim-decidim_awesome-0.10.0 db/migrate/20231006113837_create_decidim_awesome_vote_weights.rb