ForestAdmin/lumber

View on GitHub
test-fixtures/mysql/only_foreign_keys_and_id.sql

Summary

Maintainability
Test Coverage
CREATE TABLE only_foreign_keys_and_id (
  id INT AUTO_INCREMENT PRIMARY KEY,
  sample_id INT,
  car_id INT,
  FOREIGN KEY (sample_id) REFERENCES sample_table (id),
  FOREIGN KEY (car_id) REFERENCES cars (id)
);