2016-09-18 09:41:51 -05:00
|
|
|
# frozen_string_literal: true
|
2016-08-27 21:40:21 -05:00
|
|
|
class Account < ApplicationRecord
|
2016-08-28 10:32:26 -05:00
|
|
|
serialize :password, CryptSerializer
|
2016-09-18 11:16:35 -05:00
|
|
|
|
|
|
|
validates :username, presence: true
|
|
|
|
validates :password, presence: true
|
|
|
|
validates :home, presence: true
|
|
|
|
validates :site, presence: true
|
2016-08-27 21:40:21 -05:00
|
|
|
end
|