HeavyTechRuby/history

View on GitHub
app/models/location.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class Location < ApplicationRecord
  has_many :stories, dependent: :destroy

  validates :address, presence: true, length: { minimum: 10 }
end