8b4df986bf
Addresses: #402 - migrations to split roles and other attributes from users table - make changes in code to accommodate this change Co-authored-by: Sojan Jose <sojan@pepalo.com> Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
5 lines
203 B
Ruby
5 lines
203 B
Ruby
class AddUniquenessConstraintToAccountUsers < ActiveRecord::Migration[6.0]
|
|
def change
|
|
add_index :account_users, [:account_id, :user_id], unique: true, name: 'uniq_user_id_per_account_id'
|
|
end
|
|
end
|