db migration rails 3 prep

Alternate version of https://github.com/mysociety/alaveteli/pull/758