Class: ClickhouseMigrationGenerator

Inherits:
ActiveRecord::Generators::MigrationGenerator
  • Object
show all
Defined in:
lib/generators/clickhouse_migration_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_migration_fileObject



6
7
8
9
10
# File 'lib/generators/clickhouse_migration_generator.rb', line 6

def create_migration_file
  set_local_assigns!
  validate_file_name!
  migration_template @migration_template, File.join(db_migrate_path, "#{file_name}.rb")
end