Sha256: 5b0c536ea0f710696fc9dc4ea8315f8bcc3d8262396390bea52c4c48d5b6dccf

Contents?: true

Size: 648 Bytes

Versions: 142

Compression:

Stored size: 648 Bytes

Contents

# frozen_string_literal: true

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

142 entries across 142 versions & 2 rubygems

Version Path
decidim-proposals-0.13.0 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.12.1 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.13.0.pre1 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.12.0 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.11.2 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.12.0.pre db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.11.1 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.11.0.pre1 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.10.1 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.10.0 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.9.3 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.9.2 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.9.1 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.9.0 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.8.4 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.8.3 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.8.2 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.8.1 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.8.0 db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.7.4 db/migrate/20170215113152_create_proposal_reports.rb