Class: ProtectedBranch

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Gitlab::ShellAdapter
Defined in:
app/models/protected_branch.rb

Overview

Schema Information

Table name: protected_branches

id                  :integer          not null, primary key
project_id          :integer          not null
name                :string           not null
created_at          :datetime
updated_at          :datetime
developers_can_push :boolean          default(FALSE), not null

Instance Method Summary collapse

Methods included from Gitlab::ShellAdapter

#gitlab_shell

Instance Method Details

#commitObject


20
21
22
# File 'app/models/protected_branch.rb', line 20

def commit
  project.commit(self.name)
end