diff options
| author | Teddy Wing | 2017-11-14 12:12:40 +0100 |
|---|---|---|
| committer | Teddy Wing | 2017-11-14 12:22:29 +0100 |
| commit | a35a040fb6fbcccf7b9bc23386ea494bb6371c39 (patch) | |
| tree | 8b1abf7361fe478c7a25ae6266194f086dd2a45c /spec/policies | |
| parent | 96afaed78fa043449c0264ea09f0106147755c8e (diff) | |
| download | chouette-core-a35a040fb6fbcccf7b9bc23386ea494bb6371c39.tar.bz2 | |
Add spec to ensure `schema.rb` keys are `bigint`s
We use `bigint`s by default for all primary and foreign keys in the
application.
Using `bigint`s provides two advantages:
* Matching the Java application, which expects `bigint`s
* Providing support for large integer identifiers
Here, we add a spec that checks the `schema.rb` file with line-by-line
string matching to validate that no primary or foreign keys use
non-`bigint` types.
The test is a bit rough at the moment, but it works against the
temporary migration included in this commit. It should be reworked,
though, to include line numbers of the problem fields.
Refs #4951
Diffstat (limited to 'spec/policies')
0 files changed, 0 insertions, 0 deletions
