user.rb 221 Bytes
Newer Older
Eugen Rochko's avatar
Eugen Rochko committed
1
class User < ActiveRecord::Base
2 3
  devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable

Eugen Rochko's avatar
Eugen Rochko committed
4
  belongs_to :account, inverse_of: :user
5

Eugen Rochko's avatar
Eugen Rochko committed
6
  validates :account, presence: true
Eugen Rochko's avatar
Eugen Rochko committed
7
end