ProtectedBranches model, Master permission for repo\n Allow push to protected branch for masters only
This commit is contained in:
parent
3a9e5a9357
commit
37224dc9c1
14 changed files with 229 additions and 53 deletions
10
db/migrate/20120215182305_create_protected_branches.rb
Normal file
10
db/migrate/20120215182305_create_protected_branches.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
class CreateProtectedBranches < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :protected_branches do |t|
|
||||
t.integer :project_id, :null => false
|
||||
t.string :name, :null => false
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
21
db/schema.rb
21
db/schema.rb
|
@ -11,7 +11,19 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20120206170141) do
|
||||
ActiveRecord::Schema.define(:version => 20120215182305) do
|
||||
|
||||
create_table "features", :force => true do |t|
|
||||
t.string "name"
|
||||
t.string "branch_name"
|
||||
t.integer "assignee_id"
|
||||
t.integer "author_id"
|
||||
t.integer "project_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "version"
|
||||
t.integer "status", :default => 0, :null => false
|
||||
end
|
||||
|
||||
create_table "issues", :force => true do |t|
|
||||
t.string "title"
|
||||
|
@ -82,6 +94,13 @@ ActiveRecord::Schema.define(:version => 20120206170141) do
|
|||
t.boolean "merge_requests_enabled", :default => true, :null => false
|
||||
end
|
||||
|
||||
create_table "protected_branches", :force => true do |t|
|
||||
t.integer "project_id", :null => false
|
||||
t.string "name", :null => false
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
end
|
||||
|
||||
create_table "snippets", :force => true do |t|
|
||||
t.string "title"
|
||||
t.text "content"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue