diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/user.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index d871a760a..999aa0d39 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,4 +1,7 @@ class User < ActiveRecord::Base + devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable + belongs_to :account, inverse_of: :user + validates :account, presence: true end |