---
# System prepended metadata

title: '[rails4][rake]rake db 筆記'
tags: [rake, Rails4]

---

# [rails4][rake]rake db 筆記

###### tags: `Rails4`,`rake`


https://stackoverflow.com/questions/10301794/difference-between-rake-dbmigrate-dbreset-and-dbschemaload


**db:migrate**
runs (single) migrations that have not run yet.

**db:create**
creates the database

**db:drop**
deletes the database

**db:schema:load**
creates tables and columns within the (existing) database following schema.rb

**db:setup** 
run db:create, db:schema:load, db:seed

**db:reset**
run db:drop, db:setup
