Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7521: db_version_rake_task.diff

File db_version_rake_task.diff, 0.7 kB (added by pelargir, 2 years ago)
  • railties/lib/tasks/databases.rake

    old new  
    55    Rake::Task["db:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby 
    66  end 
    77 
     8  desc "Print the current database migration version to the console" 
     9  task :version => :environment do 
     10    puts "VERSION=#{ActiveRecord::Migrator.current_version}" 
     11  end 
     12 
    813  namespace :fixtures do 
    914    desc "Load fixtures into the current environment's database.  Load specific fixtures using FIXTURES=x,y" 
    1015    task :load => :environment do