Sha256: c1e149036747d7562ae14e7cafe031df37ea8d41dfc7841e8dfdf828a43116f4

Contents?: true

Size: 561 Bytes

Versions: 17

Compression:

Stored size: 561 Bytes

Contents

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

17 entries across 17 versions & 2 rubygems

Version Path
decidim-proposals-0.2.0 db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.2.0 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb
decidim-proposals-0.1.0 db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.1.0 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb
decidim-proposals-0.0.8.1 db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.0.8.1 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb
decidim-proposals-0.0.7 db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.0.7 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb
decidim-proposals-0.0.6 db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.0.6 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb
decidim-proposals-0.0.5 db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.0.5 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.0.4 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb
decidim-proposals-0.0.3 db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.0.3 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb
decidim-proposals-0.0.2 db/migrate/20170112115253_create_proposal_votes.rb
decidim-0.0.2 decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb