Commit Graph

8 Commits

Author SHA1 Message Date
Senén Rodero Rodríguez
d797ec3ca0 Fix crash deleting admin with assigned budgets
Add missing relation between administrator and budget_administrators, otherwise
we'd get the following exception when deleting and administrator with assigned budgets:

PG::ForeignKeyViolation:
ERROR:  update or delete on table "administrators" violates foreign key constraint "fk_rails_ee7dc33688" on table "budget_administrators"
DETAIL:  Key (id)=(3) is still referenced from table "budget_administrators".
2022-05-03 18:39:42 +02:00
lalo
d0e1eff532 Add description field to administrator users like evaluators description 2019-06-05 16:18:12 +02:00
Juanjo Bazán
b7d9ef6377 models inherits from ApplicationRecord 2019-04-17 17:40:56 +02:00
rgarcia
37c1c31bfe refactors Admin#name_and_email 2016-03-08 15:45:58 +01:00
rgarcia
df454f1211 fixes specs displaying admin name and email 2016-03-08 12:58:48 +01:00
rgarcia
cba83e6dd2 touches comments and debates after changes 2015-09-05 22:02:51 +02:00
Juanjo Bazán
d04383db24 validates uniqueness of admins & mods 2015-08-07 18:20:20 +02:00
kikito
3378790764 Adds migrations & models for administrators & moderators 2015-08-07 17:04:50 +02:00