From: Anthony Metcalf Date: 2009-08-27T17:58:54+09:00 Subject: Re: Using a Model --------------enigBA3B6672E4A3AB5EF182F99D Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Pete Moran wrote: > So I have created a new rails application, however I want to load data > from a file into a database table which has a Model associated with it.= > =20 Personally, I'd do this from a migration.... You can open the file and manipulate the data from within the migration. This gives you the added benefit of being able to unapply-reapply etc etc with your other table manipulations. --------------enigBA3B6672E4A3AB5EF182F99D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkqWSs0ACgkQtUxufNRmXkEzxQCeMpLpR9MK+6ktKXe4r+uq/IOm D88AoKbQ5mW4yqpxLTg5O/I3Oh9CJK6y =LO8u -----END PGP SIGNATURE----- --------------enigBA3B6672E4A3AB5EF182F99D--