• Yorick Peterse's avatar
    Add many foreign keys to the projects table · c63e3221
    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.
    c63e3221
build_presenter_spec.rb 2.66 KB