Skip to content

Instantly share code, notes, and snippets.

@slant
Created September 11, 2015 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slant/1c99ac5936959726fadf to your computer and use it in GitHub Desktop.
Save slant/1c99ac5936959726fadf to your computer and use it in GitHub Desktop.
Single-line rake task to rebuild a database from migrations (instead of schema.db)
namespace :db do
desc "Drop and recreate the database with migrations and seeds"
task :rebuild => [:drop, :create, :migrate, :seed]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment