Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9153 (closed enhancement: invalid)

Opened 1 year ago

Last modified 9 months ago

[PATCH] enhance migration generator to accept more than one column to autogenerate

Reported by: tzaharia Assigned to: core
Priority: low Milestone: 2.x
Component: Railties Version: edge
Severity: minor Keywords: migration generator
Cc:

Description

Changset #7216 (from ticket #9006) added the feature of auto-generated columns in migrations using migration names, ie:

`./script/generate migration AddSslFlagToAccount`

This patch adds on to that feature by allowing one to specify more than one column name to auto-generate, opening the doors to migration files with really, really long names:

`./script/generate migration AddSslFlagAndThemeSongToAccount`

I included a short blurb in docs about it.

Not aware of any tests for generators, so none included.

Attachments

another_migration_generator_enhancement.diff (1.7 kB) - added by tzaharia on 07/31/07 16:13:28.

Change History

07/31/07 16:13:28 changed by tzaharia

  • attachment another_migration_generator_enhancement.diff added.

07/31/07 16:38:54 changed by tzaharia

  • type changed from defect to enhancement.

08/02/07 11:35:10 changed by lifofifo

#9166 is related to this issue.

Thanks.

01/23/08 18:28:07 changed by lifofifo

  • status changed from new to closed.
  • resolution set to invalid.

[7422] changed the relevant behavior.