app/models/user.rb
# create user's personal group
create user's personal group
create user ' s personal group
def init_personal_group
    group = Group.new(_id: id, is_personal:true, name: email)
    group.save
    self.current_group = group
    groups << group
  end
def init_personal_group group = Group . new ( _id : id , is_personal : true , name : email ) group . save self . current_group = group groups << group end
create user's personal group
create user ' s personal group