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

Version Path
decidim-proposals-0.2.0 db/migrate/20170215113152_create_proposal_reports.rb
decidim-0.2.0 decidim-proposals/db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.1.0 db/migrate/20170215113152_create_proposal_reports.rb
decidim-0.1.0 decidim-proposals/db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.0.8.1 db/migrate/20170215113152_create_proposal_reports.rb
decidim-0.0.8.1 decidim-proposals/db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.0.7 db/migrate/20170215113152_create_proposal_reports.rb
decidim-0.0.7 decidim-proposals/db/migrate/20170215113152_create_proposal_reports.rb
decidim-proposals-0.0.6 db/migrate/20170215113152_create_proposal_reports.rb
decidim-0.0.6 decidim-proposals/db/migrate/20170215113152_create_proposal_reports.rb