Sha256: 398605468cd474a8cfe9a19f92c007c5fe40a4cb68b495942386df6c853e7a39

Contents?: true

Size: 361 Bytes

Versions: 8

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

class AddSettingGranterUniqueIndexToDelegations < ActiveRecord::Migration[5.2]
  def change
    add_index :decidim_action_delegator_delegations,
              [:decidim_action_delegator_setting_id, :granter_id],
              unique: true,
              name: "index_unique_decidim_delegations_on_setting_id_granter_id"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
decidim-action_delegator-0.8.1 db/migrate/20201005203554_add_setting_granter_unique_index_to_delegations.rb
decidim-action_delegator-0.7.2 db/migrate/20201005203554_add_setting_granter_unique_index_to_delegations.rb
decidim-action_delegator-0.7.1 db/migrate/20201005203554_add_setting_granter_unique_index_to_delegations.rb
decidim-action_delegator-0.7.0 db/migrate/20201005203554_add_setting_granter_unique_index_to_delegations.rb
decidim-action_delegator-0.6.0 db/migrate/20201005203554_add_setting_granter_unique_index_to_delegations.rb
decidim-action_delegator-0.5.0 db/migrate/20201005203554_add_setting_granter_unique_index_to_delegations.rb
decidim-action_delegator-0.4.1 db/migrate/20201005203554_add_setting_granter_unique_index_to_delegations.rb
decidim-action_delegator-0.4 db/migrate/20201005203554_add_setting_granter_unique_index_to_delegations.rb