Created
September 11, 2015 22:58
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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