Sha256: 7577d91fca969ec24246f3cf97db68abe925491b5e2f31ed58fdcfcc6cee6619

Contents?: true

Size: 151 Bytes

Versions: 17

Compression:

Stored size: 151 Bytes

Contents

class Marty::UserRole < Marty::Base
  validates_uniqueness_of :user_id, scope: [:role]
  validates_presence_of :user_id, :role

  belongs_to :user
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
marty-9.3.0 app/models/marty/user_role.rb
marty-8.5.0 app/models/marty/user_role.rb
marty-8.4.1 app/models/marty/user_role.rb
marty-8.3.1 app/models/marty/user_role.rb
marty-8.2.0 app/models/marty/user_role.rb
marty-8.0.0 app/models/marty/user_role.rb
marty-6.1.0 app/models/marty/user_role.rb
marty-5.2.0 app/models/marty/user_role.rb
marty-5.1.4 app/models/marty/user_role.rb
marty-5.1.3 app/models/marty/user_role.rb
marty-5.1.2 app/models/marty/user_role.rb
marty-5.1.1 app/models/marty/user_role.rb
marty-5.1.0 app/models/marty/user_role.rb
marty-3.1.0 app/models/marty/user_role.rb
marty-3.0.1 app/models/marty/user_role.rb
marty-4.0.0.rc2 app/models/marty/user_role.rb
marty-3.0.0 app/models/marty/user_role.rb