Skip to content
This repository
Browse code

Merge pull request #1292 from arunagw/database_generators

Database.rake file fixed for load_generators
  • Loading branch information...
commit 9562c0f8998e04833737591378841b45bbf24bef 2 parents 144d1b8 + 5d89675
José Valim josevalim authored
3  activerecord/lib/active_record/railties/databases.rake
@@ -481,8 +481,7 @@ db_namespace = namespace :db do
481 481 # desc "Creates a sessions migration for use with ActiveRecord::SessionStore"
482 482 task :create => :environment do
483 483 raise 'Task unavailable to this database (no migration support)' unless ActiveRecord::Base.connection.supports_migrations?
484   - require 'rails/generators'
485   - Rails::Generators.configure!
  484 + Rails.application.load_generators
486 485 require 'rails/generators/rails/session_migration/session_migration_generator'
487 486 Rails::Generators::SessionMigrationGenerator.start [ ENV['MIGRATION'] || 'add_sessions_table' ]
488 487 end

0 comments on commit 9562c0f

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