Sha256: 9be41ebacdfa5899f4a7f7a24a46a630abfee6fc609c1b39312619415a172f8f

Contents?: true

Size: 449 Bytes

Versions: 134

Compression:

Stored size: 449 Bytes

Contents

# frozen_string_literal: true

class AddUniquenessToNameAndDocumentNumberToUserGroups < ActiveRecord::Migration[5.0]
  def change
    add_index :decidim_user_groups, [:decidim_organization_id, :name], unique: true, name: "index_decidim_user_groups_names_on_organization_id"
    add_index :decidim_user_groups, [:decidim_organization_id, :document_number], unique: true, name: "index_decidim_user_groups_document_number_on_organization_id"
  end
end

Version data entries

134 entries across 134 versions & 2 rubygems

Version Path
decidim-core-0.26.8 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.27.4 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.27.3 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.26.7 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.26.5 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.27.2 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.27.1 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.26.4 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.27.0 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.26.3 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.27.0.rc2 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.27.0.rc1 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.26.2 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.26.1 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.26.0 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.26.0.rc2 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.26.0.rc1 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.25.2 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.25.1 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb
decidim-core-0.25.0 db/migrate/20170612070905_add_uniqueness_to_name_and_document_number_to_user_groups.rb