Skip to content

Instantly share code, notes, and snippets.

@paul
Created August 26, 2008 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paul/7315 to your computer and use it in GitHub Desktop.
Save paul/7315 to your computer and use it in GitHub Desktop.
migration( 1, :convert_active_record_users ) do
up do
Users.all(:orm => 'active_record').each do |u|
u.orm = 'datamapper'
u.save
end
end
end
migrate_up!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment