Ruby on Rails
Monday, June 1, 2015
Thanks, Hassan ~ The rake command does the job of building (and updating) schema.rb. ~ Ken
On Monday, June 1, 2015 at 2:06:45 PM UTC-4, Hassan Schroeder wrote:
-- On Monday, June 1, 2015 at 2:06:45 PM UTC-4, Hassan Schroeder wrote:
On Sun, May 31, 2015 at 5:06 PM, kenatsun <kena...@gmail.com> wrote:
> 10. An odd note is that there still is no schema.rb file in x/db/. If this
> is what Rails uses as its "database catalog", is the lack of it going to
> cause trouble down the road?
Possibly, but you can use `rake db:schema:dump` to generate it
from your existing DB.
> My next question is whether it is possible to sue the amazing Rails
> generators - in particular, scaffold - to more quickly create an app that
> works with an existing database - so it would not be necessary to go thru
> all those manual steps shown above. I tried it once, and it tried to run
> the migrator
I've never seen a scaffold command automatically run migrations;
can you be more specific about what led up to that?
You should be able to scaffold a model and then just delete the
migration file.
--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote
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+unsubscribe@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/59ab0afe-d9ef-4f39-a626-d6f95985c226%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment