Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

migration generation in 3.2 #5403

Closed
SentulAsia opened this Issue · 3 comments

2 participants

@SentulAsia

Rails migration will create string column 'show index new edit create update destroy' on scaffold
The migration generator should skip generating this column and properly create specified controller actions

@vijaydev
Collaborator

Can you show how you generated the scaffold?

@SentulAsia

e.g:
rails g scaffold message content:text user_id:integer index create

the scaffold generator should handle special active record character such as index and create as controller actions instead of column on database with type string

@vijaydev
Collaborator

You can't pass in action method names to the scaffold generator. By default it generates all the actions.

@vijaydev vijaydev closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.