drop db rails code example
Example 1: drop rails all db
rake db:drop:all
rails db:drop:all
Example 2: rails reset database
rails db:reset
// drop database and create/migrate all in one
Example 3: rails destroy something from db
user.destroy
User.find(15).destroy
User.destroy(15)
User.where(age: 20).destroy_all
User.destroy_all(age: 20)