radar/twist-v2

View on GitHub
backend/db/migrate/20200422022137_create_permissions.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

ROM::SQL.migration do
  change do
    create_table(:permissions) do
      foreign_key :user_id, :users
      foreign_key :book_id, :books
    end
  end
end