ODOWA
Accueil Inscription Contact

How To Use Fixtures to Populate Your Database in Rails

This is a response to the email I’ve been getting asking me how to use fixtures to load data into a database. You want to create dummy entries in your Rails app, either for testing, for development, or for production, to make your site appear popular. Whatever the reason, populating your database can be done easily using fixtures. While rake/fixtures/migrations can get a lot more complex, this will be a brief introductory example. Initial App setup $ rails characters $ cd characters/... lire la suite

Lien du post: http://biodegradablegeek.com/2008/07/how-to-use-fixtures-to-populate-your-database-in-rails/

Sur le même thème :