Sha256: e1b74cfafcd36cdcfb9af4d66d8ceadeb4307a46adca30cc5a83b8e22dd1d64a
Contents?: true
Size: 289 Bytes
Versions: 6
Compression:
Stored size: 289 Bytes
Contents
# encoding: utf-8 class UserRole < ActiveRecord::Base belongs_to :user belongs_to :role validates :user_id, :presence => true, :numericality => true validates :role_id, :presence => true, :numericality => true def to_s "user_id: #{user_id}, role_id: #{role_id}" end end
Version data entries
6 entries across 6 versions & 1 rubygems