Permalink
Browse files

Configure generators before invoking.

  • Loading branch information...
1 parent 44cb6dc commit 8aca1c09db1cb74a5b59aaa454fb7f551ccb6de0 @josevalim josevalim committed with mikel Jun 2, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 activerecord/lib/active_record/railties/databases.rake
@@ -435,6 +435,7 @@ namespace :db do
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!
require 'rails/generators/rails/session_migration/session_migration_generator'
Rails::Generators::SessionMigrationGenerator.start [ ENV["MIGRATION"] || "add_sessions_table" ]
end

0 comments on commit 8aca1c0

Please sign in to comment.