aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-05-25 02:12:54 -0700
committerJosé Valim <jose.valim@gmail.com>2011-05-25 02:12:54 -0700
commit9562c0f8998e04833737591378841b45bbf24bef (patch)
treec4b4523077a9a93e5dd9e439a869030bd05f6959 /activerecord
parent144d1b8b0d8f64cce53bda512055e9b5634c681f (diff)
parent5d8967509916d456152fc3170e8f142c400c419c (diff)
downloadrails-9562c0f8998e04833737591378841b45bbf24bef.tar.gz
rails-9562c0f8998e04833737591378841b45bbf24bef.tar.bz2
rails-9562c0f8998e04833737591378841b45bbf24bef.zip
Merge pull request #1292 from arunagw/database_generators
Database.rake file fixed for load_generators
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/railties/databases.rake3
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake
index 2c7298e220..6f8f84d50b 100644
--- a/activerecord/lib/active_record/railties/databases.rake
+++ b/activerecord/lib/active_record/railties/databases.rake
@@ -481,8 +481,7 @@ db_namespace = namespace :db do
# desc "Creates a sessions migration for use with ActiveRecord::SessionStore"
task :create => :environment do
raise 'Task unavailable to this database (no migration support)' unless ActiveRecord::Base.connection.supports_migrations?
- require 'rails/generators'
- Rails::Generators.configure!
+ Rails.application.load_generators
require 'rails/generators/rails/session_migration/session_migration_generator'
Rails::Generators::SessionMigrationGenerator.start [ ENV['MIGRATION'] || 'add_sessions_table' ]
end