Sha256: caf82b167c91824ef20f1bb0fd69d816c56f74bf7d7ba595caf8fb163f33dc58
Contents?: true
Size: 608 Bytes
Versions: 144
Compression:
Stored size: 608 Bytes
Contents
# frozen_string_literal: true 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
144 entries across 144 versions & 2 rubygems