Adding table attributes / columns

I’m reading through Active Record in AWDWR and using script / console to
type in the examples.
I’ve been needing to add in columns to the table and see that unless I
exit
script / console and restart it won’t see the new columns.
Of course exiting destroys the class and requires. Any other way I can
work
around this ?

TIA
Stuart

I’ve been needing to add in columns to the table and see that unless I exit
script / console and restart it won’t see the new columns.
Of course exiting destroys the class and requires. Any other way I can work
around this ?

Try typing:

reload!

at the console prompt.

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