Sha256: 1876ec8b055badd35c55da1c6022759837e5eaa0431ba1025bb3d5f7480c6952

Contents?: true

Size: 203 Bytes

Versions: 17

Compression:

Stored size: 203 Bytes

Contents

class AddRolesUniqueConstraints < ActiveRecord::Migration[5.0]
  def change
    add_index :spree_roles, :name, unique: true
    add_index :spree_roles_users, [:user_id, :role_id], unique: true
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
solidus_core-2.5.2 db/migrate/20170422134804_add_roles_unique_constraints.rb
solidus_core-2.5.1 db/migrate/20170422134804_add_roles_unique_constraints.rb
solidus_core-2.5.0 db/migrate/20170422134804_add_roles_unique_constraints.rb
solidus_core-2.5.0.rc1 db/migrate/20170422134804_add_roles_unique_constraints.rb
solidus_core-2.5.0.beta2 db/migrate/20170422134804_add_roles_unique_constraints.rb
solidus_core-2.5.0.beta1 db/migrate/20170422134804_add_roles_unique_constraints.rb
solidus_core-2.4.2 db/migrate/20170422134804_add_roles_unique_constraints.rb
solidus_core-2.3.1 db/migrate/20170422134804_add_roles_unique_constraints.rb
solidus_core-2.4.1 db/migrate/20170422134804_add_roles_unique_constraints.rb
solidus_core-2.4.0 db/migrate/20170422134804_add_roles_unique_constraints.rb
solidus_core-2.4.0.rc1 db/migrate/20170422134804_add_roles_unique_constraints.rb
solidus_core-2.4.0.beta1 db/migrate/20170422134804_add_roles_unique_constraints.rb
solidus_core-2.3.0 db/migrate/20170422134804_add_roles_unique_constraints.rb
solidus_core-2.3.0.rc3 db/migrate/20170422134804_add_roles_unique_constraints.rb
solidus_core-2.3.0.rc2 db/migrate/20170422134804_add_roles_unique_constraints.rb
solidus_core-2.3.0.rc1 db/migrate/20170422134804_add_roles_unique_constraints.rb
solidus_core-2.3.0.beta1 db/migrate/20170422134804_add_roles_unique_constraints.rb