On Mon, Oct 29, 2012 at 4:17 PM, Lars
<larsgbr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Is there a way to add another field to a blog(i.e. another text field)
using
> database browser. I was able to make the changes using the Sqlite Database
> Browser and saved but the changes didn''t migrate over to my app.
The proper Rails way to change your DB schema is using migrations,
not direct manipulation. Not only do you have a historical record of the
changes, it''s easier to make the exact same change to a staging or
production environment, or back out the change in development.
Regardless, if you want a new field to appear in your views, etc. you
have to add that code yourself.
--
Hassan Schroeder ------------------------
hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
http://about.me/hassanschroeder
twitter: @hassan
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.