radar/twist-v2

View on GitHub
backend/db/migrate/20210113013411_unique_permissions.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

ROM::SQL.migration do
  change do
    alter_table :permissions do
      add_unique_constraint([:book_id, :user_id])
    end
  end
end