Created
August 26, 2008 18:36
-
-
Save paul/7315 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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