Skip to content

Instantly share code, notes, and snippets.

@heliohead
Created January 17, 2016 22:07
Show Gist options
  • Save heliohead/5864592f928d1321da6d to your computer and use it in GitHub Desktop.
Save heliohead/5864592f928d1321da6d to your computer and use it in GitHub Desktop.
Rails data base rake
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