ftp-manager/app/models/account.rb
2016-09-28 22:12:55 -05:00

10 lines
268 B
Ruby

# frozen_string_literal: true
class Account < ApplicationRecord
serialize :password, CryptSerializer
validates :username, presence: true
validates :password, presence: true
validates :home_folder, presence: true
validates :contact_email, presence: true
end