diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-20 05:49:19 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-20 05:49:19 +0000 |
commit | f340df798e62b9c92c2c322d3f56a00eb2523de7 (patch) | |
tree | b01ae2070b9097d5ee759153baeb322af083a407 /railties | |
parent | 30c42b21b32132e53f5ec9129f042a797e4956cd (diff) | |
download | rails-f340df798e62b9c92c2c322d3f56a00eb2523de7.tar.gz rails-f340df798e62b9c92c2c322d3f56a00eb2523de7.tar.bz2 rails-f340df798e62b9c92c2c322d3f56a00eb2523de7.zip |
Clearing doesnt need migrations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3996 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/tasks/databases.rake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/tasks/databases.rake b/railties/lib/tasks/databases.rake index 4ae88ac7ce..964613e8c1 100644 --- a/railties/lib/tasks/databases.rake +++ b/railties/lib/tasks/databases.rake @@ -145,12 +145,11 @@ namespace :db do raise "Task unavailable to this database (no migration support)" unless ActiveRecord::Base.connection.supports_migrations? require 'rails_generator' require 'rails_generator/scripts/generate' - Rails::Generator::Scripts::Generate.new.run(["session_migration", ENV["MIGRATION"] || "AddSessionTable"]) + Rails::Generator::Scripts::Generate.new.run(["session_migration", ENV["MIGRATION"] || "AddSessions"]) end desc "Clear the sessions table" task :clear => :environment do - raise "Task unavailable to this database (no migration support)" unless ActiveRecord::Base.connection.supports_migrations? ActiveRecord::Base.connection.execute "DELETE FROM sessions" end end |