Feature/rails3 squash migrations

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