Class: Roomer::Generators::SetupGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Roomer::Generators::SetupGenerator
- Extended by:
- ActiveRecord::Generators::Migration
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/setup/setup_generator.rb
Instance Method Summary (collapse)
-
- (Object) create_migration_file
creates a migration file under /db/migrate/shared_schema_name.
Instance Method Details
- (Object) create_migration_file
creates a migration file under /db/migrate/shared_schema_name
11 12 13 |
# File 'lib/generators/setup/setup_generator.rb', line 11 def create_migration_file migration_template "global_migration.rb", "db/migrate/#{Roomer.shared_schema_name.to_s}/roomer_create_#{Roomer.tenants_table.to_s}" end |