Reopen existing ActiveRecord classes for migrations

extend wasn't working properly in the case of
create_table do |t|
  t.hstore :attributes
end

Ideally, this should be done with Module#prepend, but that would
require Ruby 2.0