Update to Rails 4.2 RC3.

Not much to iron out, though we did have to bump to some git gem
versions.
Update the schemas and use new foreign key support.