Why this NameError?

Why would this:

$ rails generate migration add_user_id_to_articles user_id:integer

return this:

NameError: undefined local variable or method ‘integer’ for
main:Object ???

On May 1, 8:56pm, Bruce W. [email protected] wrote:

Why would this:

$ rails generate migration add_user_id_to_articles user_id:integer

return this:

NameError: undefined local variable or method ‘integer’ for
main:Object ???

Did you type this at the rails console rather than at the command
line?

Fred

Thank you , Frederick

On May 1, 1:58pm, Frederick C. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs