instance method existing_migrations

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

existing_migrations(file_name)

No documentation comment.

Parameters

file_name req
Source
# File railties/lib/rails_generator/commands.rb, line 75
          def existing_migrations(file_name)
            Dir.glob("#{@migration_directory}/[0-9]*_*.rb").grep(/[0-9]+_#{file_name}.rb$/)
          end

Defined in railties/lib/rails_generator/commands.rb line 75 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Generator::Commands::Base

Type at least 2 characters to search.

↑↓ navigate · open · esc close