ciudadanointeligente / vizard

0 stars 1 forks source link

Projects index - can't delete shared projects #457

Closed maugsbur closed 9 years ago

maugsbur commented 9 years ago

PG::ForeignKeyViolation: ERROR: update or delete on table "projects" violates foreign key constraint "fk_rails_bb2fd79f14" on table "permissions"

The Permissions model config should do cascade deleting, with dependent: destroy on Project model

There should also be a warning saying that it's shared with other users before deleting it.