Sha256: 6b418969ec894e11949d0fe3a50ba5a212eb8e6750b63191f8c5f830272f9264

Contents?: true

Size: 583 Bytes

Versions: 17

Compression:

Stored size: 583 Bytes

Contents

class CreateCommentVotes < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_comments_comment_votes do |t|
      t.integer :weight, null: false
      t.references :decidim_comment, null: false, index: { name: "decidim_comments_comment_vote_comment" }
      t.references :decidim_author, null: false, index: { name: "decidim_comments_comment_vote_author" }
      
      t.timestamps
    end

    add_index :decidim_comments_comment_votes, [:decidim_comment_id, :decidim_author_id], unique: true, name: "decidim_comments_comment_vote_comment_author_unique"
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
decidim-comments-0.2.0 db/migrate/20161219150806_create_comment_votes.rb
decidim-0.2.0 decidim-comments/db/migrate/20161219150806_create_comment_votes.rb
decidim-comments-0.1.0 db/migrate/20161219150806_create_comment_votes.rb
decidim-0.1.0 decidim-comments/db/migrate/20161219150806_create_comment_votes.rb
decidim-comments-0.0.8.1 db/migrate/20161219150806_create_comment_votes.rb
decidim-0.0.8.1 decidim-comments/db/migrate/20161219150806_create_comment_votes.rb
decidim-comments-0.0.7 db/migrate/20161219150806_create_comment_votes.rb
decidim-0.0.7 decidim-comments/db/migrate/20161219150806_create_comment_votes.rb
decidim-comments-0.0.6 db/migrate/20161219150806_create_comment_votes.rb
decidim-0.0.6 decidim-comments/db/migrate/20161219150806_create_comment_votes.rb
decidim-comments-0.0.5 db/migrate/20161219150806_create_comment_votes.rb
decidim-0.0.5 decidim-comments/db/migrate/20161219150806_create_comment_votes.rb
decidim-0.0.4 decidim-comments/db/migrate/20161219150806_create_comment_votes.rb
decidim-comments-0.0.3 db/migrate/20161219150806_create_comment_votes.rb
decidim-0.0.3 decidim-comments/db/migrate/20161219150806_create_comment_votes.rb
decidim-comments-0.0.2 db/migrate/20161219150806_create_comment_votes.rb
decidim-0.0.2 decidim-comments/db/migrate/20161219150806_create_comment_votes.rb