Sha256: 980aa52e55e0e90ac86b30fcd9c97222912bc885bde44087b55f0aa979e8d50b

Contents?: true

Size: 309 Bytes

Versions: 20

Compression:

Stored size: 309 Bytes

Contents

class AddUniqueConstraintToPermissionTemplateAccesses < ActiveRecord::Migration[5.1]
  def change
    add_index :permission_template_accesses,
              [:permission_template_id, :agent_id, :agent_type, :access],
              unique: true,
              name: 'uk_permission_template_accesses'
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
zizia-6.0.1 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-6.0.0 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-5.5.0 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-5.4.0 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-5.3.0 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-5.2.0 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-5.1.0 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-5.0.1 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-5.0.0 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-4.6.0.alpha.01 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-4.5.4.alpha.01 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-4.5.3.alpha.01 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-4.5.2.alpha.01 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-4.5.1.alpha.01 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-4.4.1.alpha.01 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-4.4.0.alpha.01 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-4.3.1.alpha.01 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-4.2.0.alpha.01 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-4.1.0.alpha.01 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb
zizia-4.0.4.alpha.01 spec/dummy/db/migrate/20190918192887_add_unique_constraint_to_permission_template_accesses.hyrax.rb