Skip to content
Erik Hetzner edited this page Mar 28, 2018 · 1 revision

Misc

How to change the creator on a paper:

p = Paper.find(PAPER_ID)
u = User.find(USER_ID)
p.assignments.where(role: p.journal.creator_role).first.update(user: u)
Clone this wiki locally