Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2014-12-26 11:07:02 +0300
committerMarin Jankovski <maxlazio@gmail.com>2014-12-26 11:07:02 +0300
commit6ce3b1a31174a9f09dd34c114c7fb13d898db6ec (patch)
treef0e014c622dea07a1724874776d60939feec0044 /db
parente46f546b4cf0218dcec0771381d0718e0ba72f58 (diff)
Add migration for developers can push to protected branches flag.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20141226080412_add_developers_can_push_to_protected_branches.rb5
-rw-r--r--db/schema.rb9
2 files changed, 10 insertions, 4 deletions
diff --git a/db/migrate/20141226080412_add_developers_can_push_to_protected_branches.rb b/db/migrate/20141226080412_add_developers_can_push_to_protected_branches.rb
new file mode 100644
index 00000000000..70e7272f7f3
--- /dev/null
+++ b/db/migrate/20141226080412_add_developers_can_push_to_protected_branches.rb
@@ -0,0 +1,5 @@
+class AddDevelopersCanPushToProtectedBranches < ActiveRecord::Migration
+ def change
+ add_column :protected_branches, :developers_can_push, :boolean, default: false, null: false
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index b8335c5841b..38255f2d367 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20141205134006) do
+ActiveRecord::Schema.define(version: 20141226080412) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -279,10 +279,11 @@ ActiveRecord::Schema.define(version: 20141205134006) do
add_index "projects", ["star_count"], name: "index_projects_on_star_count", using: :btree
create_table "protected_branches", force: true do |t|
- t.integer "project_id", null: false
- t.string "name", null: false
+ t.integer "project_id", null: false
+ t.string "name", null: false
t.datetime "created_at"
t.datetime "updated_at"
+ t.boolean "developers_can_push", default: false, null: false
end
add_index "protected_branches", ["project_id"], name: "index_protected_branches_on_project_id", using: :btree
@@ -367,7 +368,6 @@ ActiveRecord::Schema.define(version: 20141205134006) do
t.integer "notification_level", default: 1, null: false
t.datetime "password_expires_at"
t.integer "created_by_id"
- t.datetime "last_credential_check_at"
t.string "avatar"
t.string "confirmation_token"
t.datetime "confirmed_at"
@@ -375,6 +375,7 @@ ActiveRecord::Schema.define(version: 20141205134006) do
t.string "unconfirmed_email"
t.boolean "hide_no_ssh_key", default: false
t.string "website_url", default: "", null: false
+ t.datetime "last_credential_check_at"
end
add_index "users", ["admin"], name: "index_users_on_admin", using: :btree