On 15 November 2010 19:20, Bob T. <li...@ruby-forum.com> wrote:
> Here is the table definition from the generated schema.rb
>
>  create_table "dogs", :primary_key => "dog_id", :force => true do |t|
>    t.string "color",    :limit => 20
>    t.string "gender",   :limit => 20
>    t.string "dog_name", :limit => 20
>  end
>
>
> I used skip-migration because the table already exists in mysql.
> When I move from learning mode to development mode, I will need to write
> code against existing databases, so I can't maintain the database source
> code in ruby.

Did you put
set_primary_key "dog_id"
in the the dog model?

Colin

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

Reply via email to