Commit e0003411538c643c258f564c8eae8084507aff1d
1 parent
9f81f9be
Exists in
master
and in
23 other branches
ActionItem16: an user can have more than one profile
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@878 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
0 additions
and
4 deletions
Show diff stats
app/models/profile.rb
| ... | ... | @@ -71,10 +71,6 @@ class Profile < ActiveRecord::Base |
| 71 | 71 | validates_exclusion_of :identifier, :in => RESERVED_IDENTIFIERS |
| 72 | 72 | validates_uniqueness_of :identifier |
| 73 | 73 | |
| 74 | - # A profile_owner cannot have more than one profile, but many profiles can exist | |
| 75 | - # without being associated to a particular user. | |
| 76 | - validates_uniqueness_of :user_id, :allow_nil =>true | |
| 77 | - | |
| 78 | 74 | # creates a new Profile. By default, it is attached to the default |
| 79 | 75 | # Environment (see Environment#default), unless you tell it |
| 80 | 76 | # otherwise | ... | ... |