Updated to support Rails 4

It doesn't include:

- composite_primary_keys.
- delayed_job_active_record.
- delayed_job_web.