Multiple customers - keeping the data separate - how?

Neil - I’ve tried emailing you directly but they bounce - could you
email me - I think we may be able to collobarate here.

One thing I’ve done to keep DRY:

environment.rb

require ‘config/tenants’

tenants.rb

PRODUCTION_TENANTS = [‘joe’, ‘fred’, ‘bob’]

database.yml

<% PRODUCTION_TENANTS.each do |tenant| %>
production_<%= tenant %>:
adapter: postgresql
database: <%= tenant %>
username:<%= tenant %>
password: useasharedpasswordforalltenants
host: localhost

One hitch I’ve had is rails wants to load (environemntname.rb) and
crashes if it can’t. I’d rather use the same production.rb for all of
them. Any ideas?