I'm just starting out learning.  So far, all I've done is little test
apps starting from scratch -- ie, ones in which rails creates an empty
database, then I make up some classes and views and controllers and
such. Nice system. But what if I have an SQlite database file created
elsewhere:  (how) can I import this into ruby "easily"?  I have not
tried yet because it just occurred to me that there is an id
field/column in the "native" rails databases.  Could I add such a column
and then just copy the db file straight into db/development.sqlite?

I am guessing the easiest way might be to just create an empty db with
all the necessary tables and columns and then write a script to copy the
relevant data in from the existing external db.
-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to