Use Rails with the db schema you always wanted

You just use typical DDL to define your PostgreSQL tables, run the reactive_record generator, and voilà: it will create a model file for each of your tables, define validations using key/uniqueness/presence constraints, and even set up your associations for you.