On Jun 4, 2015, at 2:21 PM, kenatsun <kenat...@gmail.com> wrote:
> 
> Next step: I have succeeded in adding a column to a database table, then 
> using the generator tools to update the Rails objects that implement that 
> model.  The process, which I share for what it's worth to others, is:
> 
> 1.      Add attribute toys.color (text):
> 2.      Ran rake db:schema:dump to update schema.rb:
> 3.      Ran schema_to_scaffold for toys:
> 4.      Ran scaffold using that script:
> However:  This process has only a limited ability to update the Rails 
> objects...

I do wonder if you really understand: steps 2 through 4 were unnecessary. You 
can manage your database schema using Rails & migrations, or you can manage it 
completely outside of Rails. Either option is pretty easy, while a mishmash 
combination of the two is not so easy.


-- 
Scott Ribe
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice





-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/C7B5B60D-68B4-4E92-8AA2-1B11B7DF79E1%40elevated-dev.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to