[#1218] Add ref_id and update specs and migrations
[#1218] Bump version to 0.02