class User < ApplicationRecord
	has_secure_password

	has_many :plans

	validates :name, presence: true, length: { minimum: 5 }
end
class User < ApplicationRecord
	has_secure_password

	has_many :plans, dependent: :destroy

	validates :name, presence: true, length: { minimum: 5 }
	validates :email, presence: true, length: { minimum: 4 }
end
Add preliminary validations and dependent destroy to User model
Add preliminary validations and dependent destroy to User model
