diff options
author | José Valim <jose.valim@gmail.com> | 2010-06-02 09:37:38 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-02 09:37:38 +0200 |
commit | 0570720d667b5fe55aeebfba087064788d4d2ba4 (patch) | |
tree | d8bce901284a7644d00554b35f5a34a3db6b0d86 | |
parent | afc102698672cdf546a15424471d3287a39dbb06 (diff) | |
download | rails-0570720d667b5fe55aeebfba087064788d4d2ba4.tar.gz rails-0570720d667b5fe55aeebfba087064788d4d2ba4.tar.bz2 rails-0570720d667b5fe55aeebfba087064788d4d2ba4.zip |
Configure generators before invoking.
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index cb7eade0ab..952f2a3070 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/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 |