Skip to content
Browse files

Merge pull request #1292 from arunagw/database_generators

Database.rake file fixed for load_generators
  • Loading branch information...
2 parents 144d1b8 + 5d89675 commit 9562c0f8998e04833737591378841b45bbf24bef @josevalim josevalim 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 9562c0f

Please sign in to comment.
Something went wrong with that request. Please try again.