Bug #247

Feature #36: associate publications with projects

Feature #246: Delete a publication

Deleting a publication does not delete its Authorships

Added by Luis Figueira over 8 years ago. Updated over 8 years ago.

Status:ClosedStart date:2011-08-03
Priority:HighDue date:
Assignee:Luis Figueira% Done:

10%

Category:-
Target version:Bibliography Alpha

Description

When a user deletes a publication its Authorships are not deleted from the database.

History

#1 Updated by Chris Cannam over 8 years ago

Does Rails have a simple mechanism for doing cascading deletes (perhaps through a standard database ON clause in the migration)?

#2 Updated by Luis Figueira over 8 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10

#3 Updated by Luis Figueira over 8 years ago

  • Status changed from In Progress to Closed

Instead of deleting the object with the delete method I should be using the destroy method, which deletes all associated records.

Also available in: Atom PDF