Only enforce 1-database rule for rails

Change-Id: I80ebc4b4464f6f8809204463e3e7a5f6322e26a0