Sha256: 58b9961a77095f43d58502506fcf621bd07f1805d340e83de881e2bc5c678b98
Contents?: true
Size: 617 Bytes
Versions: 6
Compression:
Stored size: 617 Bytes
Contents
# == Schema Information # # Table name: lentil_users # # id :integer not null, primary key # user_name :string(255) # full_name :string(255) # banned :boolean # created_at :datetime not null # updated_at :datetime not null # service_id :integer # bio :text # images_count :integer default(0) # class Lentil::User < ActiveRecord::Base stores_emoji_characters :full_name, :bio has_many :images belongs_to :service validates_uniqueness_of :user_name, :scope => :service_id def number_of_images self.images.count end end
Version data entries
6 entries across 6 versions & 1 rubygems