mirror of
https://github.com/Freika/dawarich.git
synced 2026-04-22 03:00:29 -04:00
9 lines
192 B
Ruby
9 lines
192 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Area < ApplicationRecord
|
|
belongs_to :user
|
|
has_many :visits, dependent: :destroy
|
|
|
|
validates :name, :latitude, :longitude, :radius, presence: true
|
|
end
|