Skip to content

Instantly share code, notes, and snippets.

@axilaris
Created March 8, 2014 13:06
Show Gist options
  • Save axilaris/9430318 to your computer and use it in GitHub Desktop.
Save axilaris/9430318 to your computer and use it in GitHub Desktop.
class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
belongs_to :country
has_many :company_user_assocs
has_many :companies, :through => :company_user_assocs
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment