Added files required by Rails 4.
Added support for auto-increment integer id.