Class: ActiveRecord::Generators::MultiDbGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/rails/generators/active_record/multi_db/multi_db_generator.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#create_multi_dbObject



10
11
12
13
# File 'lib/rails/generators/active_record/multi_db/multi_db_generator.rb', line 10

def create_multi_db
  filename = "multi_db.rb"
  template filename, "config/initializers/#{filename}"
end