gitlab-org--gitlab-foss/db
Yorick Peterse c63e322158
Add many foreign keys to the projects table
This removes the need for relying on Rails' "dependent" option for data
removal, which is _incredibly_ slow (even when using :delete_all) when
deleting large amounts of data. This also ensures data consistency is
enforced on DB level and not on application level (something Rails is
really bad at).

This commit also includes various migrations to add foreign keys to
tables that eventually point to "projects" to ensure no rows get
orphaned upon removing a project.
2017-07-06 12:01:36 +02:00
..
fixtures Replace invalid chars while seeding environments 2017-06-21 11:16:38 +00:00
migrate Add many foreign keys to the projects table 2017-07-06 12:01:36 +02:00
post_migrate Improve stage_id in ci_builds foreign key migration 2017-07-03 20:24:32 +02:00
schema.rb Add many foreign keys to the projects table 2017-07-06 12:01:36 +02:00
seeds.rb