Created
August 19, 2014 17:21
-
-
Save romanmt/717f658f6a8efd361f01 to your computer and use it in GitHub Desktop.
running dm migrations
From http://blog.teksol.info/2008/10/16/how-to-use-datamapper-from-rails-including-migrations-and-tests
This file contains hidden or 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
| 1 namespace :dm do | |
| 2 task :migrate => :environment do | |
| 3 gem "dm-migrations", "=0.9.6" | |
| 4 require "migration_runner" | |
| 5 Dir[File.join(Rails.root, "db", "migrate", "*")].each {|f| require f} | |
| 6 migrate_up! | |
| 7 end | |
| 8 end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment