Acts as published behaviour for rails/active record.