Feature/rails3 squashed migrations

Implements https://www.openproject.org/issues/2459