Bob T. wrote in post #961643: > 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.
That's not quite true. You need to learn about rake db:schema:dump. Anyway, you should be using migrations wherever possible, especially as you learn. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- 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-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.