Create data model from existing database

How do I go about creating a data model from an existing database? Does rails have a script to automate the process?