Skip to content

Commit

Permalink
Made default names consistent with the scaffolding generator and upda…
Browse files Browse the repository at this point in the history
…ted the usage message.
  • Loading branch information
whittle committed Aug 8, 2009
1 parent 33d648b commit 9b21688
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions generators/delayed_job_migration/USAGE
Expand Up @@ -4,7 +4,7 @@ Description:
as an argument.

Example:
`./script/generate delayed_job_migration CreateDelayedJobTable`
`./script/generate delayed_job_migration CreateDelayedJobs`

With 4 existing migrations, this creates the AddDelayedJobTable migration
in db/migrate/005_add_delayed_job_table.rb
On 8Aug09 at almost quarter after 8p UTC, this creates the CreateDelayedJobs
migration in db/migrate/20090808201453_create_delayed_jobs.rb
@@ -1,6 +1,6 @@
class DelayedJobMigrationGenerator < Rails::Generator::NamedBase
def initialize(runtime_args, runtime_options = {})
runtime_args << 'add_delayed_job_table' if runtime_args.empty?
runtime_args << 'create_delayed_jobs' if runtime_args.empty?
super
end

Expand Down

0 comments on commit 9b21688

Please sign in to comment.