Sha256: 19a7b8d1cc23ae68758656c56bf7270d2d36437e34b3a4d3fca12495b7fa0ddb

Contents?: true

Size: 586 Bytes

Versions: 142

Compression:

Stored size: 586 Bytes

Contents

# frozen_string_literal: true

class CreateProposalVotes < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_proposals_proposal_votes do |t|
      t.references :decidim_proposal, null: false, index: { name: "decidim_proposals_proposal_vote_proposal" }
      t.references :decidim_author, null: false, index: { name: "decidim_proposals_proposal_vote_author" }

      t.timestamps
    end

    add_index :decidim_proposals_proposal_votes, [:decidim_proposal_id, :decidim_author_id], unique: true, name: "decidim_proposals_proposal_vote_proposal_author_unique"
  end
end

Version data entries

142 entries across 142 versions & 2 rubygems

Version Path
decidim-proposals-0.6.0 db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.6.0 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb
decidim-proposals-0.5.1 db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.5.1 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb
decidim-proposals-0.5.0 db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.5.0 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb
decidim-proposals-0.4.4 db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.4.4 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb
decidim-proposals-0.4.3 db/migrate/20170112115253_create_proposal_votes.rb
decidim-proposals-0.4.2 db/migrate/20170112115253_create_proposal_votes.rb
decidim-proposals-0.4.1 db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.4.3 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.4.2 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.4.1 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb
decidim-proposals-0.4.0 db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.4.0 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb
decidim-proposals-0.3.2 db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.3.2 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb
decidim-proposals-0.3.1 db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.3.1 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb