Class: InferModel::To::Migration
- Inherits:
-
Object
- Object
- InferModel::To::Migration
- Extended by:
- Dry::Initializer, Callable
- Defined in:
- lib/infer_model/to/migration.rb
Constant Summary collapse
- TIMESTAMP_FORMAT =
"%Y%m%d%H%M%S"
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
19 20 21 22 |
# File 'lib/infer_model/to/migration.rb', line 19 def call FileUtils.mkdir_p(target_dir) File.write(migration_filename, migration_content) end |