3scale/porta

View on GitHub
lib/system/database/definitions/postgres.rb

Summary

Maintainability
C
1 day
Test Coverage

Showing 1 of 2 total issues

File postgres.rb has 539 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

require 'system/database/procedure'
 
System::Database::Postgres.define do
trigger 'accounts' do
<<~SQL
Severity: Major
Found in lib/system/database/definitions/postgres.rb - About 1 day to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    System::Database::Postgres.define do
    trigger 'accounts' do
    <<~SQL
    IF NEW.buyer = TRUE THEN
    NEW.tenant_id := NEW.provider_account_id;
    Severity: Major
    Found in lib/system/database/definitions/postgres.rb and 1 other location - About 1 day to fix
    lib/system/database/definitions/oracle.rb on lines 5..590

    There are no issues that match your filters.

    Category
    Status