Sha256: 6313e424e3e75168a0056bd2c46b14d0a82f387d249a49e865ccb61aec9b40f7

Contents?: true

Size: 526 Bytes

Versions: 5

Compression:

Stored size: 526 Bytes

Contents

class CreateReports < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_reports do |t|
      t.references :decidim_moderation, null: false, index: { name: "decidim_reports_moderation" }
      t.references :decidim_user, null: false, index: { name: "decidim_reports_user" }

      t.string :reason, null: false
      t.text :details

      t.timestamps
    end

    add_index :decidim_reports, [:decidim_moderation_id, :decidim_user_id], unique: true, name: "decidim_reports_moderation_user_unique"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-core-0.2.0 db/migrate/20170307084957_create_reports.rb
decidim-core-0.1.0 db/migrate/20170307084957_create_reports.rb
decidim-core-0.0.8.1 db/migrate/20170307084957_create_reports.rb
decidim-core-0.0.7 db/migrate/20170307084957_create_reports.rb
decidim-core-0.0.6 db/migrate/20170307084957_create_reports.rb