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

Version Path
decidim-enhanced_textwork-1.0.5 db/migrate/20170215113152_create_paragraph_reports.rb
decidim-enhanced_textwork-1.0.4 db/migrate/20170215113152_create_paragraph_reports.rb
decidim-enhanced_textwork-1.0.3 db/migrate/20170215113152_create_paragraph_reports.rb
decidim-enhanced_textwork-1.0.2 db/migrate/20170215113152_create_paragraph_reports.rb
decidim-enhanced_textwork-1.0.1 db/migrate/20170215113152_create_paragraph_reports.rb
decidim-enhanced_textwork-1.0.0 db/migrate/20170215113152_create_paragraph_reports.rb