Method: TrustyCms::GeneratorBaseExtension#existing_migrations_with_extensions
- Defined in:
- lib/generators/generator_base_extension.rb
#existing_migrations_with_extensions(file_name) ⇒ Object
10 11 12 |
# File 'lib/generators/generator_base_extension.rb', line 10 def existing_migrations_with_extensions(file_name) Dir.glob("#{destination_path(@migration_directory)}/[0-9]*_*.rb").grep(/[0-9]+_#{file_name}.rb$/) end |