dawarich/app/models/trip.rb
2024-11-27 20:14:17 +01:00

7 lines
144 B
Ruby

# frozen_string_literal: true
class Trip < ApplicationRecord
belongs_to :user
validates :name, :started_at, :ended_at, presence: true
end