summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-15 22:02:33 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-15 22:02:33 +0200
commit37224dc9c1ee80ba9030b616e2bc87bd96919e09 (patch)
tree5291abadd8748ea47685c326df4b137d0d6a2194 /db
parent3a9e5a9357b6b0cac2acdefa203136c9b572e102 (diff)
downloadgitlab-ce-37224dc9c1ee80ba9030b616e2bc87bd96919e09.tar.gz
ProtectedBranches model, Master permission for repo\n Allow push to protected branch for masters only
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20120215182305_create_protected_branches.rb10
-rw-r--r--db/schema.rb21
2 files changed, 30 insertions, 1 deletions
diff --git a/db/migrate/20120215182305_create_protected_branches.rb b/db/migrate/20120215182305_create_protected_branches.rb
new file mode 100644
index 00000000000..841d08c33d5
--- /dev/null
+++ b/db/migrate/20120215182305_create_protected_branches.rb
@@ -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
diff --git a/db/schema.rb b/db/schema.rb
index bb9f638764a..f7006c4c9c2 100644
--- a/db/schema.rb
+++ b/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"