16 lines
245 B
Ruby
16 lines
245 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class Session < ApplicationRecord
|
||
|
################
|
||
|
# Associations #
|
||
|
################
|
||
|
|
||
|
belongs_to :account
|
||
|
|
||
|
###############
|
||
|
# Validations #
|
||
|
###############
|
||
|
|
||
|
validates :ip_address, presence: true
|
||
|
end
|