Sha256: 16449c313dc1c432b8d54c3d5a356b5b6f406071be3e6dd99437ce2dc6b43417

Contents?: true

Size: 438 Bytes

Versions: 9

Compression:

Stored size: 438 Bytes

Contents

Description:
    Generate a one-off or general purpose script, such as a data migration
    script, cleanup script, etc.

Example:
    `bin/rails generate script my_script`

    This will create:
        script/my_script.rb

    You can run the script using:
        `ruby script/my_script.rb`

    You can specify a folder:
        `bin/rails generate script cleanup/my_script`

    This will create:
        script/cleanup/my_script.rb

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
railties-8.0.0 lib/rails/generators/rails/script/USAGE
railties-8.0.0.rc2 lib/rails/generators/rails/script/USAGE
railties-8.0.0.rc1 lib/rails/generators/rails/script/USAGE
railties-8.0.0.beta1 lib/rails/generators/rails/script/USAGE
omg-railties-8.0.0.alpha9 lib/rails/generators/rails/script/USAGE
omg-railties-8.0.0.alpha8 lib/rails/generators/rails/script/USAGE
omg-railties-8.0.0.alpha7 lib/rails/generators/rails/script/USAGE
omg-railties-8.0.0.alpha4 lib/rails/generators/rails/script/USAGE
omg-railties-8.0.0.alpha3 lib/rails/generators/rails/script/USAGE