Permalink
Browse files

Added rake db:version to get the current schema version from the comm…

…and line (closes #7521) [pelargir]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7574 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 1d4002d commit 35e382627ec4b6d0aaf14f831adc104d353163a9 @dhh dhh committed Sep 22, 2007
Showing with 7 additions and 0 deletions.
  1. +2 −0 railties/CHANGELOG
  2. +5 −0 railties/lib/tasks/databases.rake
View
@@ -1,5 +1,7 @@
*SVN*
+* Added rake db:version to get the current schema version from the command line #7521 [pelargir]
+
* Fixed the placement of fixture files for nested models when generating through script/generate model #7547 [jkit]
* Added TEMPLATE option to rake doc:app to set a custom output template #7737 [Jakob S]
@@ -99,6 +99,11 @@ namespace :db do
puts "Current version: #{ActiveRecord::Migrator.current_version}"
end
+ desc "Print the current database migration version to the console"
+ task :version => :environment do
+ puts "VERSION=#{ActiveRecord::Migrator.current_version}"
+ end
+
namespace :fixtures do
desc "Load fixtures into the current environment's database. Load specific fixtures using FIXTURES=x,y"
task :load => :environment do

0 comments on commit 35e3826

Please sign in to comment.