diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-12 17:32:36 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-12 17:32:36 +0000 |
commit | 0d97f055c2f02fa4bc99ae39f138205967815a97 (patch) | |
tree | 893e0791bf2bd10fcae9175b9486f3ed98a7aea1 /railties/lib | |
parent | d25fe84a01bd026945f1e86b1f651094f66151b2 (diff) | |
download | rails-0d97f055c2f02fa4bc99ae39f138205967815a97.tar.gz rails-0d97f055c2f02fa4bc99ae39f138205967815a97.tar.bz2 rails-0d97f055c2f02fa4bc99ae39f138205967815a97.zip |
Sessions with an s
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/tasks/databases.rake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/tasks/databases.rake b/railties/lib/tasks/databases.rake index 077bfe296a..c6dfefa965 100644 --- a/railties/lib/tasks/databases.rake +++ b/railties/lib/tasks/databases.rake @@ -97,7 +97,7 @@ task :purge_test_database => :environment do end desc "Creates a sessions table for use with CGI::Session::ActiveRecordStore" -task :create_session_table => :environment do +task :create_sessions_table => :environment do raise "Task unavailable to this database (no migration support)" unless ActiveRecord::Base.connection.supports_migrations? ActiveRecord::Base.connection.create_table :sessions do |t| @@ -110,12 +110,12 @@ task :create_session_table => :environment do end desc "Drop the sessions table" -task :drop_session_table => :environment do +task :drop_sessions_table => :environment do raise "Task unavailable to this database (no migration support)" unless ActiveRecord::Base.connection.supports_migrations? ActiveRecord::Base.connection.drop_table :sessions end desc "Drop and recreate the session table (much faster than 'DELETE * FROM sessions')" -task :purge_session_table => [ :drop_session_table, :create_session_table ] do +task :purge_sessions_table => [ :drop_sessions_table, :create_sessions_table ] do end
\ No newline at end of file |