Tuesday, October 30, 2012

Re: [Rails] SQLITE Database Browser question

On Mon, Oct 29, 2012 at 4:17 PM, Lars <larsgbr@gmail.com> 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@gmail.com
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate