Sha256: 6663949aeb3fc2f5aca1d31cb2d8b2930eede619d5c65c015a1ff2afe8a65531

Contents?: true

Size: 484 Bytes

Versions: 65

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

class AddUniqIndexToDecidimMetrics < ActiveRecord::Migration[5.2]
  def change
    add_index(
      :decidim_metrics, [
        :day,
        :metric_type,
        :decidim_organization_id,
        :participatory_space_type,
        :participatory_space_id,
        :related_object_type,
        :related_object_id,
        :decidim_category_id
      ],
      unique: true,
      name: "idx_metric_by_day_type_org_space_object_category"
    )
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
decidim-core-0.25.0.rc4 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.25.0.rc3 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.25.0.rc2 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.25.0.rc1 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.24.3 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.23.6 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.24.2 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.23.5 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.24.1 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.24.0 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.24.0.rc2 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.23.4 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.24.0.rc1 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.23.3 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.23.2 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.23.1 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.23.1.rc1 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.23.0 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.22.0 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb
decidim-core-0.21.0 db/migrate/20190829092826_add_uniq_index_to_decidim_metrics.rb