1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/models/user.rb

25 lines
410 B
Ruby
Raw Normal View History

2018-11-29 15:57:57 -05:00
# frozen_string_literal: true
class User < ApplicationRecord
devise(
# :confirmable,
:database_authenticatable,
# :lockable,
# :omniauthable,
# :recoverable,
:registerable,
:rememberable,
# :timeoutable,
:trackable,
:validatable,
)
2018-12-01 21:50:10 -05:00
belongs_to :account
validates :account_id, uniqueness: true
before_validation do
self.account ||= Account.new
end
2018-11-29 15:57:57 -05:00
end