• Yorick Peterse's avatar
    Add many foreign keys to the projects table · 028db84c
    Yorick Peterse authored
    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.
    028db84c
forked_project_link_spec.rb 1.5 KB