Recap from Ruby Coding Group: 8-11-07
- Make sure Ruby, Rails, MySql & Subversion are installed and working properly on your machine.
- Create 2 databases: atlrug01_development & atlrug01_test
- Login to Assembla where the atlrug coding project 1 is being hosted. You need to be invited to the atlrug project in order to checkout the project with subversion.
- Checkout the atlrug project: svn co http://tools.assembla.com/svn/atlrug. You will have to enter your assembla password and username in order to check the project out.
Here are two options for syncing the data between development databases in rails:
1. export and import sql—using a command like this one…
mysql -u root -p atlrug01_development < /path/to/your/project/.../atlrug/atlrug01/trunk/atlrug01/db/development_data.sql
2. fixtures + yaml
I placed a rake task in lib/tasks that will take whatever is in the db and dump that into a yaml fixture located in test/fixtures.
After checking out the latest version of the project, you run rake db:migrate & rake db:fixtures:load to import the yaml to your db.
Full instructions here: http://snippets.dzone.com/posts/show/3393
Trackbacks
Use the following link to trackback from your own site:
/blog/articles/trackback/12704
