aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-09-12 17:32:36 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-09-12 17:32:36 +0000
commit0d97f055c2f02fa4bc99ae39f138205967815a97 (patch)
tree893e0791bf2bd10fcae9175b9486f3ed98a7aea1
parentd25fe84a01bd026945f1e86b1f651094f66151b2 (diff)
downloadrails-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
-rw-r--r--railties/CHANGELOG2
-rw-r--r--railties/environments/environment.rb2
-rw-r--r--railties/lib/tasks/databases.rake6
3 files changed, 5 insertions, 5 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG
index 6a3d7ac041..6f4f14de21 100644
--- a/railties/CHANGELOG
+++ b/railties/CHANGELOG
@@ -1,6 +1,6 @@
*SVN*
-* Added create_session_table, drop_session_table, and purge_session_table as rake tasks for databases that supports migrations (MySQL, PostgreSQL, SQLite) to get a table for use with CGI::Session::ActiveRecordStore
+* Added create_sessions_table, drop_sessions_table, and purge_sessions_table as rake tasks for databases that supports migrations (MySQL, PostgreSQL, SQLite) to get a table for use with CGI::Session::ActiveRecordStore
* Added dump of schema version to the db_structure_dump task for databases that support migrations #1835 [Rick Olson]
diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb
index 1c3b1219e4..98518031fa 100644
--- a/railties/environments/environment.rb
+++ b/railties/environments/environment.rb
@@ -19,7 +19,7 @@ Rails::Initializer.run do |config|
# config.log_level = Logger::DEBUG
# Use the database for sessions instead of the file system
- # (create the session table with 'rake create_session_table')
+ # (create the session table with 'rake create_sessions_table')
# config.session_options[:database_manager] = CGI::Session::ActiveRecordStore
# See Rails::Configuration for more options
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