A (hopefully...) quick rake db:migrate question

Hey Folks,

RoR noob here with a quick question. I have added a field to a table
using:
ruby script/generate migration add_price_to_product price:decimal,

and did: rake db:migrate afterwards.

no change was reflected in the “Views” though. I’m pretty sure i’m
missing something here, can anyone give me a pointer?

Many Thanks…

John

Hi John,

I think you’re expected to modify your view yourself. Migrations only
create/modify your database schema and doesn’t touch anything else.

Warmest regards,
David

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