Module: Nandi::MultiDbGenerator
- Included in:
- CheckConstraintGenerator, ForeignKeyGenerator, IndexGenerator, MigrationGenerator, NotNullCheckGenerator
- Defined in:
- lib/nandi/multi_db_generator.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/nandi/multi_db_generator.rb', line 5 def self.included(base) base.class_option :database, default: nil, type: :string, desc: "Database to migrate in multi-database mode. " \ "If not specified, uses specified default or primary database" end |