rails db delete model code example
Example 1: rails remove model
rails destroy model <model_name>
Example 2: 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)