2024-07-21 14:09:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
|
|
class Area < ApplicationRecord
|
|
|
|
|
belongs_to :user
|
2024-07-21 14:32:29 -04:00
|
|
|
has_many :visits, dependent: :destroy
|
2024-07-21 14:09:42 -04:00
|
|
|
|
|
|
|
|
validates :name, :latitude, :longitude, :radius, presence: true
|
|
|
|
|
end
|