The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Rake db:bootstrap and foreign keys

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Max Zone

Posts: 9170
Nickname: dzone
Registered: Jun, 2006

dzone.com is a link-sharing community where member participation determines what gets published
Rake db:bootstrap and foreign keys Posted: Apr 19, 2007 11:18 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Max Zone.
Original Post: Rake db:bootstrap and foreign keys
Feed Title: dzone.com: ruby
Feed URL: http://feeds.dzone.com/dzone/ruby
Feed Description: dzone.com: fresh ruby and rails links for developers
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Max Zone
Latest Posts From dzone.com: ruby

Advertisement
While working on our current project I decided to implement, for the initial SQL import, the db:bootstrap task from technoweenie forum but I found some problems due to this fact: The data is imported ordered by the name of the tables. This means that if you have a table named ���accounts��� and a table named ���users��� accounts data will be loaded first and users data will follow, but what happens if there is a foreign key between users table and accounts table ?

Read: Rake db:bootstrap and foreign keys

Topic: Where's Ruby's Ruby parser? Previous Topic   Next Topic Topic: Why was Rails only possible with Ruby?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use