Skip to content

Latest commit

 

History

History
30 lines (30 loc) · 500 Bytes

database_mgmt.md

File metadata and controls

30 lines (30 loc) · 500 Bytes
Get DB up and running
$ rake db:create
Load schema.rb into DB
$ rake db:schema:load
Load data into DB from seed.rb
$ rake db:seed
Simplified above commands into one line
$ rake db:setup
#db:create
#db:schema:load
#db:seed
Delete the database
$ rake db:drop
Dropping DB and seeding
$ rake db:reset
# Drop the database: rake db:drop
# Load the schema: rake db:schema:load
# Seed the data: rake db:seed