michaelhayman / Reciprocity

http://stark-window-6749.heroku.com/
1 stars 0 forks source link

Make fixtures to populate the database #1

Closed michaelhayman closed 12 years ago

michaelhayman commented 12 years ago

Use fixtures to do this.

Just as a note, here's an example of how to populate tables with data in a migration:

Word.new(:eng=>'yes', :pl=>'tak').save Word.new(:eng=>'no', :pl=>'nie').save Word.new(:eng=>'everything', :pl=>'wszystko').save end

michaelhayman commented 12 years ago

bundle exec rake db:fixtures:load FIXTURES=days,points,needs