I made a friendly alias to rake db:migrate VERSION=0 (got tired of
writing it all the time)
Feel free to use it.
add alias to “rake db:migrate VERSION=0”
that can be called without extra parameters
namespace :db do
namespace :migrate do
desc “Alias for db:migrate VERSION=0”
task :down => :environment do
puts “migrates down to version 0 of database”
ActiveRecord::Base.schema_format == :ruby
I vaguely recall that I have read that it’s possible to put snippets
out as pasties, so that everybody can use it as a sake task.
Could someone please explain me how?