Thursday, April 28, 2011

Re: [Rails] Re: Migration error

On 28 April 2011 15:47, Pale Horse <lists@ruby-forum.com> wrote:
>> amritpal p. wrote in post #995533:
>> Run it to generate a new migration
>> Then ran "rake db:migrate", it created a new columns in table products with name
>> "price", but it didn't change the view (didn't create a field with name "price")
>>
>> Why?
>
> The clue's in the name - running rake db:migrate alters your database
> (hence 'db'). It is not responsible for changing the views.

Just to clarify that, you have to write code yourself to add the field
to the view.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate