Rails::Generator::Commands::Destroy


Files

Parent

Description

Undo the actions performed by a generator. Rewind the action manifest and attempt to completely erase the results of each action.

Methods

Public Instance methods

complex_template (*args)

directory (relative_path)

Remove each directory in the given path from right to left. Remove each subdirectory if it exists and is a directory.

file (relative_source, relative_destination, file_options = {})

Remove a file if it exists and is a file.

Alias

template

migration_template (relative_source, relative_destination, template_options = {})

When deleting a migration, it knows to delete every file named "[0-9]*_#{file_name}".

route_resources (*resources)

template (relative_source, relative_destination, file_options = {})

Alias for file