Sha256: 074d59dae7516ae273f044e4521fb7fe5126bca1a26a89cdaf4ecd2a25249e42
Contents?: true
Size: 465 Bytes
Versions: 2
Compression:
Stored size: 465 Bytes
Contents
class UserHasRole < ActiveRecord::Base belongs_to :user belongs_to :role accepts_nested_attributes_for :role # validates_uniqueness_of :role_id, scope: :user_id # validates_presence_of :role_id, :user_id end # == Schema Information # # Table name: user_has_roles # # id :integer not null, primary key # user_id :integer not null # role_id :integer not null # created_at :datetime # updated_at :datetime #
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enju_seed-0.3.0.beta.2 | app/models/user_has_role.rb |
enju_seed-0.3.0.beta.1 | app/models/user_has_role.rb |