Post Rails table's relationship and Ubuntu commands