Forum: Typo Possible project for the interested

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Piers C. (Guest)
on 2006-05-13 09:55
(Received via mailing list)
I've been thinking about migrations and about importing blog
data. Part of the problem we have with our current converter scripts
is that they fall out of date and are hard to keep current with our
database schema. Then it occurred to me that we're already doing work
to keep the database schema up to date with our migrations. So, in
order to play nicely, a particular converter script needs target a
particular schema version. That way, one could start with an empty
database and the data from your old blog and do

  $ rake migrate VERSION=`./db/converters/wordpress.rb --schema_version`
  $ ./db/converters/wordpress.rb --db wordpress
  $ rake migrate

Assuming we get all our converters working this way, it shouldn't be
too hard to write a rake task so that could become:

  $ rake import FORMAT=wordpress ARGS='--db wordpress'

Also, it would be helpful if we could redo the converters in, for want
of a better description, 'migration style' using BareMigration type
classes.

If anyone's casting around for Summer of Code ideas, Scott's prepared
to supervise, this looks like it might well fit the bill.
This topic is locked and can not be replied to.