Skip to content

Instantly share code, notes, and snippets.

@axilaris
Created March 1, 2014 02:40
Show Gist options
  • Save axilaris/9284212 to your computer and use it in GitHub Desktop.
Save axilaris/9284212 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 :companies, :through => :company_user_assoc
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment