Sha256: cb95e372ebd558181be543f0204183f969d5953938444f8d76e43aefff5cfa85

Contents?: true

Size: 157 Bytes

Versions: 11

Compression:

Stored size: 157 Bytes

Contents

class Marty::UserRole < Marty::Base
  validates :user_id, uniqueness: { scope: [:role] }
  validates :user_id, :role, presence: true

  belongs_to :user
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
marty-14.3.0 app/models/marty/user_role.rb
marty-14.0.0 app/models/marty/user_role.rb
marty-13.0.2 app/models/marty/user_role.rb
marty-11.0.0 app/models/marty/user_role.rb
marty-10.0.3 app/models/marty/user_role.rb
marty-10.0.2 app/models/marty/user_role.rb
marty-10.0.0 app/models/marty/user_role.rb
marty-9.5.1 app/models/marty/user_role.rb
marty-9.5.0 app/models/marty/user_role.rb
marty-9.3.3 app/models/marty/user_role.rb
marty-9.3.2 app/models/marty/user_role.rb