Skip to content

Instantly share code, notes, and snippets.

@semudu
Created January 14, 2016 08:48
Show Gist options
  • Select an option

  • Save semudu/20e9b0a7181c862e4fac to your computer and use it in GitHub Desktop.

Select an option

Save semudu/20e9b0a7181c862e4fac to your computer and use it in GitHub Desktop.

Revisions

  1. semudu created this gist Jan 14, 2016.
    6 changes: 6 additions & 0 deletions gitlab
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #make user admin
    sudo gitlab-rails console
    u = User.find_by_username("maneesh")
    u.admin = true
    u.save
    exit