Created
January 17, 2016 22:07
-
-
Save heliohead/5864592f928d1321da6d to your computer and use it in GitHub Desktop.
Rails data base rake
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
rake db:migrate # runs (single) migrations that have not run yet. | |
rake db:create # creates the database | |
rake db:drop # deletes the database | |
rake db:schema:load # creates tables and columns within the (existing) database following schema.rb | |
rake db:setup does db:create, db:schema:load, db:seed | |
rake db:reset does db:drop, db:setup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment