module Rails::Generators::Migration::ClassMethods

def migration_exists?(dirname, file_name)

def migration_exists?(dirname, file_name)
  migration_lookup_at(dirname).grep(/\d+_#{file_name}.rb$/).first
end