Goldfish are extremely peaceful and not likely to attack other fish, but they should really be kept in a species-only tank. Rainbow fish are also peaceful and would not likely attack other fish. Make sure that if you introduce a new fish into this tank that you get a peaceful type of fish, and stay away from the semi-aggressive or aggressive species. If you are in doubt, you can ask a petstore employee, but I wouldn't always go off of their word. They don't always know (especially at the chains) - you are better off getting multiple opinions and researching the new fish online first.