Sha256: bcc8c854aac899c1fe4beffaf8af62538715ecfd2316de6a8b3f0a53b33287ed
Contents?: true
Size: 696 Bytes
Versions: 6
Compression:
Stored size: 696 Bytes
Contents
# frozen_string_literal: true class CreateParagraphReports < ActiveRecord::Migration[5.0] def change create_table :decidim_enhanced_textwork_paragraph_reports do |t| t.references :decidim_paragraph, null: false, index: { name: "decidim_enhanced_textwork_paragraph_result_paragraph" } t.references :decidim_user, null: false, index: { name: "decidim_enhanced_textwork_paragraph_result_user" } t.string :reason, null: false t.text :details t.timestamps end add_index :decidim_enhanced_textwork_paragraph_reports, [:decidim_paragraph_id, :decidim_user_id], unique: true, name: "decidim_enhanced_textwork_paragraph_report_paragraph_user_uniq" end end
Version data entries
6 entries across 6 versions & 1 rubygems