From rails5.0, it seems that both rake command and rails command can be used
#create
$ rails db:create
#delete
$ rails db:drop
# db/Regenerated based on schema
$ rails db:reset
# db/Regenerate based on migrate file
$ rails db:migrate:status
#Make the previous order absent
$ rails db:rollback
#Make the previous two commands not continuous
$ rails db:rollback STEP=2
#Created based on seed file
$ rails db:seed
# create / schema:load /Execute the seed command in order
$ rails db:setup
https://qiita.com/parsetree/items/e9b08c6b11f762b949de
Recommended Posts