If you need to run Rails on top of an existing database, and you want you to be able to create all models matching existing tables, follow this guide:
As an alternative to ActiveRecord, you can consider DataMapper , as it claims to work better with the brown field (that is, already installed).
source share