diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-25 02:12:54 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-25 02:12:54 -0700 |
commit | 9562c0f8998e04833737591378841b45bbf24bef (patch) | |
tree | c4b4523077a9a93e5dd9e439a869030bd05f6959 /activerecord | |
parent | 144d1b8b0d8f64cce53bda512055e9b5634c681f (diff) | |
parent | 5d8967509916d456152fc3170e8f142c400c419c (diff) | |
download | rails-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.rake | 3 |
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 |