Sha256: aebf7235ff7c9c06f6a32c856d943fd0e3f6b4e7222fdd9e0911d06e55be782b
Contents?: true
Size: 617 Bytes
Versions: 10
Compression:
Stored size: 617 Bytes
Contents
class CreateProposalReports < ActiveRecord::Migration[5.0] def change create_table :decidim_proposals_proposal_reports do |t| t.references :decidim_proposal, null: false, index: { name: "decidim_proposals_proposal_result_proposal" } t.references :decidim_user, null: false, index: { name: "decidim_proposals_proposal_result_user" } t.string :reason, null: false t.text :details t.timestamps end add_index :decidim_proposals_proposal_reports, [:decidim_proposal_id, :decidim_user_id], unique: true, name: "decidim_proposals_proposal_report_proposal_user_unique" end end
Version data entries
10 entries across 10 versions & 2 rubygems