Skip to content
  • Eugene Kenny's avatar
    fcd40a44
    Raise database error when table doesn't exist · fcd40a44
    Eugene Kenny authored
    Since 1944a7e7, adding a foreign key or
    check constraint to a non-existent table results in an unhelpful error:
    
        NoMethodError: undefined method `scan' for nil:NilClass
    
    This restores the previous behaviour of raising the underlying error
    from the database, which describes the actual problem.
    fcd40a44
    Raise database error when table doesn't exist
    Eugene Kenny authored
    Since 1944a7e7, adding a foreign key or
    check constraint to a non-existent table results in an unhelpful error:
    
        NoMethodError: undefined method `scan' for nil:NilClass
    
    This restores the previous behaviour of raising the underlying error
    from the database, which describes the actual problem.
Loading