2 desc "Dump schema and data to db/schema.rb and db/data.yml"
3 task(:dump => [ "db:schema:dump", "db:data:dump" ])
5 desc "Load schema and data from db/schema.rb and db/data.yml"
6 task(:load => [ "db:schema:load", "db:data:load" ])
10 "#{RAILS_ROOT}/db/data.yml"
13 desc "Dump contents of database to db/data.yml"
14 task(:dump => :environment) do
15 YamlDb.dump db_dump_data_file
18 desc "Load contents of db/data.yml into database"
19 task(:load => :environment) do
20 YamlDb.load db_dump_data_file