Skip to content

Instantly share code, notes, and snippets.

@jameslafa
Created July 10, 2013 19:21
Show Gist options
  • Save jameslafa/5969343 to your computer and use it in GitHub Desktop.
Save jameslafa/5969343 to your computer and use it in GitHub Desktop.
Rebuild schema.rb from scratch using every migrations
# Rebuild database from schema.rb
rake db:reset
# But this rebuild database from all migrations
rake db:drop db:create db:migrate db:seed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment