migration_template(relative_source, relative_destination, template_options = {})
public
When deleting a migration, it knows to delete every file named
"[0-9]*_#{file_name}".
Show source
def migration_template(relative_source, relative_destination, template_options = {})
migration_directory relative_destination
raise "There is no migration named #{file_name}" unless migration_exists?(file_name)
existing_migrations(file_name).each do |file_path|
file(relative_source, file_path, template_options)
end
end