ps-add-constraints Add migration to validate invalid constraints

Push event #1076.1 failed

  • Ran for
AMD64
Ruby: 2.5.1
Git
RAILS_ENV=test
language: ruby
sudo: false

services:
  - postgresql

addons:
  postgresql: "9.6"

cache:
  directories:
    - vendor/bundle

rvm: "2.5.1"

env:
  - RAILS_ENV=test

script:
  - bundle exec rspec spec
  - script/validate_structure_file.rb db/main/structure-original.sql

before_script:
  - cp db/main/structure.sql db/main/structure-original.sql
  - cp config/database.yml.travis config/database.yml

after_success:
  - script/upload_structure.rb
Build Config
{
  "os": [
    "linux"
  ],
  "env": {
    "matrix": [
      "RAILS_ENV=test"
    ]
  },
  "rvm": [
    "2.5.1"
  ],
  "dist": "trusty",
  "sudo": false,
  "cache": {
    "directories": [
      "vendor/bundle"
    ]
  },
  "addons": {
    "postgresql": "9.6"
  },
  "script": [
    "bundle exec rspec spec",
    "script/validate_structure_file.rb db/main/structure-original.sql"
  ],
  "language": "ruby",
  "services": [
    "postgresql"
  ],
  "after_success": [
    "script/upload_structure.rb"
  ],
  "before_script": [
    "cp db/main/structure.sql db/main/structure-original.sql",
    "cp config/database.yml.travis config/database.yml"
  ]
}