Browse files

Database.rake file fixed for load_generators

  • Loading branch information...
1 parent 144d1b8 commit 5d8967509916d456152fc3170e8f142c400c419c @arunagw arunagw committed May 25, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/lib/active_record/railties/databases.rake
View
3 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

0 comments on commit 5d89675

Please sign in to comment.