Adds support in ActiveRecord for foreign_keys, complex indexes and other database-related stuff