Justin To | 8 Jul 23:44

Re: Database configuration


Phil Calder wrote:
> Foo is the model you are creating (app/models/foo.rb).

Foo is an arbitrary name, right? What is an example of a real model 
name?

> Rails will generate a migration to create a database table based on the
> parameters you supply. In this case the 2 fields (integer and text).

I already have a database with two tables created, what do I do now?

> 
> After generating the scaffold look in:
> db/migrations/001_create_foo.rb
> You can add more fields if you want, then run
> rake db:migrate
> 

In the command prompt, do I simply type 'rake db:migrate' or do I have 
to include a path? If I do, how would I specify the path? Using -c ?

> This creates the database table.
> 
> 2008/7/9 Justin To <rails-mailing-list@...>:

Thanks!!
--

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane