saasbook

setup_development_db.txt

Aug 15th, 2013
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. # on production computer:
  2. RAILS_ENV=production rake db:schema:dump
  3. RAILS_ENV=production rake db:fixtures:extract
  4. # copy db/schema.rb and test/fixtures/*.yml to development computer
  5. # then, on development computer:
  6. rake db:create # uses RAILS_ENV=development by default
  7. rake db:schema:load
  8. rake db:fixtures:load
Add Comment
Please, Sign In to add comment