古いDB構造から新しい構造への移行に役立つRubygem/ライブラリはありますか?ActiveRecordの移行は、新しいデータベース構造を追跡するのに役立ちますが、レガシーデータベース全体を新しい構造に移行するのに役立つ何かがあるのではないかと思います。
transfer_from(:source_table => 'person', :destination_table => 'dudes_and_dudets') do
from :name, :to => :full_name
from :dob, :to => :age do |dob| # this would, for example, load the result
(Date.today - dob)/60/60/24/365 # of the block into :age
end
end
(これらの変換はARでも同じように簡単に実行できると思いますが、マジックライブラリにさらに多くの変換が含まれることを期待しています。
ベルンズ